Skip to content

Commit f934f26

Browse files
authored
Add updater to adapt CMS's schema from v1.5 (#1420)
1 parent f277dcc commit f934f26

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
BEGIN;
2+
3+
-- https://github.com/cms-dev/cms/pull/1378
4+
ALTER TYPE public.feedback_level ADD VALUE 'oi_restricted';
5+
6+
-- https://github.com/cms-dev/cms/pull/1391
7+
ALTER TABLE public.contests ADD COLUMN min_submission_interval_grace_period interval;
8+
ALTER TABLE public.contests ADD CONSTRAINT contests_min_submission_interval_grace_period_check CHECK ((min_submission_interval_grace_period > '00:00:00'::interval));
9+
10+
-- https://github.com/cms-dev/cms/pull/1392
11+
ALTER TABLE public.contests ADD COLUMN allow_unofficial_submission_before_analysis_mode boolean NOT NULL DEFAULT false;
12+
ALTER TABLE public.contests ALTER COLUMN allow_unofficial_submission_before_analysis_mode DROP DEFAULT;
13+
14+
-- https://github.com/cms-dev/cms/pull/1393
15+
ALTER TABLE public.submission_results ADD COLUMN scored_at timestamp without time zone;
16+
17+
COMMIT;

0 commit comments

Comments
 (0)