forked from indico/indico
-
Notifications
You must be signed in to change notification settings - Fork 0
DB Changes
Ilias Trichopoulos edited this page Feb 1, 2017
·
16 revisions
For version 1.9.10, devel
branch.
Sorted by newest first.
ALTER TABLE event_paper_reviewing.review_comments
ADD COLUMN visibility smallint NOT NULL;
ALTER TABLE event_paper_reviewing.review_comments
ADD CONSTRAINT ck_review_comments_valid_enum_visibility CHECK ((visibility = ANY (ARRAY[1, 2, 3, 4])));
ALTER TABLE event_paper_reviewing.revisions
ADD COLUMN judge_id integer,
ADD COLUMN judgment_dt timestamp without time zone;
ALTER TABLE event_paper_reviewing.revisions
ADD CONSTRAINT ck_revisions_judge_if_judged CHECK (((state = ANY (ARRAY[2, 3, 4])) = (judge_id IS NOT NULL)));
ALTER TABLE event_paper_reviewing.revisions
ADD CONSTRAINT ck_revisions_judgment_dt_if_judged CHECK (((state = ANY (ARRAY[2, 3, 4])) = (judgment_dt IS NOT NULL)));
ALTER TABLE event_paper_reviewing.revisions
ADD CONSTRAINT fk_revisions_judge_id_users FOREIGN KEY (judge_id) REFERENCES users.users(id);
CREATE INDEX ix_revisions_judge_id ON event_paper_reviewing.revisions USING btree (judge_id);
ALTER TABLE event_paper_reviewing.revisions ADD COLUMN judgment_comment text NOT NULL;
ALTER TABLE event_paper_reviewing.templates ADD COLUMN description text NOT NULL;
ALTER TABLE event_paper_reviewing.templates ADD COLUMN name text NOT NULL;
ALTER TABLE event_paper_reviewing.review_questions ADD COLUMN type smallint NOT NULL;
ALTER TABLE event_paper_reviewing.review_questions ADD CONSTRAINT ck_review_questions_valid_enum_type CHECK ((type = ANY (ARRAY[1, 2])));
Image source: http://imgur.com/a/sGoPk