fixes #2716: Wiki pages should be undeletable

This commit is contained in:
Albert Yi
2016-10-18 15:17:50 -07:00
parent 2a5343b8cf
commit e78b7d2a8c
12 changed files with 55 additions and 24 deletions

View File

@@ -3305,7 +3305,8 @@ CREATE TABLE wiki_page_versions (
is_locked boolean NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
other_names text
other_names text,
is_deleted boolean DEFAULT false NOT NULL
);
@@ -3343,7 +3344,8 @@ CREATE TABLE wiki_pages (
updated_at timestamp without time zone,
updater_id integer,
other_names text,
other_names_index tsvector
other_names_index tsvector,
is_deleted boolean DEFAULT false NOT NULL
);
@@ -7452,3 +7454,5 @@ INSERT INTO schema_migrations (version) VALUES ('20160822230752');
INSERT INTO schema_migrations (version) VALUES ('20160919234407');
INSERT INTO schema_migrations (version) VALUES ('20161018221128');