diff --git a/migrations/development/20230504184521-update-abbr-contraint.sql b/migrations/development/20230504184521-update-abbr-contraint.sql new file mode 100644 index 0000000000000000000000000000000000000000..01fff7d57000c34ecbfbd99adaed4afc5adde0ca --- /dev/null +++ b/migrations/development/20230504184521-update-abbr-contraint.sql @@ -0,0 +1,8 @@ + +-- +migrate Up +ALTER TABLE public.course + DROP CONSTRAINT IF EXISTS course_abbreviation_key; + +-- +migrate Down +ALTER TABLE public.course + ADD CONSTRAINT course_abbreviation_key UNIQUE (abbreviation); \ No newline at end of file diff --git a/migrations/staging/20230504184521-update-abbr-contraint.sql b/migrations/staging/20230504184521-update-abbr-contraint.sql new file mode 100644 index 0000000000000000000000000000000000000000..01fff7d57000c34ecbfbd99adaed4afc5adde0ca --- /dev/null +++ b/migrations/staging/20230504184521-update-abbr-contraint.sql @@ -0,0 +1,8 @@ + +-- +migrate Up +ALTER TABLE public.course + DROP CONSTRAINT IF EXISTS course_abbreviation_key; + +-- +migrate Down +ALTER TABLE public.course + ADD CONSTRAINT course_abbreviation_key UNIQUE (abbreviation); \ No newline at end of file