From a1243745502a3117afc542fdc2f3079d11e62a6e Mon Sep 17 00:00:00 2001 From: Anton Bagliy <taccessviolation@gmail.com> Date: Sat, 10 Nov 2018 20:23:36 +0300 Subject: [PATCH] REF: change study_groups.formid to enum fulltime_parttime_evening #50 --- db/postgresql/keys_and_index.sql | 2 +- db/postgresql/tables_and_views.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/postgresql/keys_and_index.sql b/db/postgresql/keys_and_index.sql index cdc8da5ad..8885ac9fd 100644 --- a/db/postgresql/keys_and_index.sql +++ b/db/postgresql/keys_and_index.sql @@ -494,7 +494,7 @@ ALTER TABLE ONLY study_form -- ALTER TABLE ONLY study_groups - ADD CONSTRAINT study_groups_facultyid_gradeid_groupnum_key UNIQUE (facultyid, gradeid, groupnum); + ADD CONSTRAINT study_groups_facultyid_gradeid_groupnum_formid_key UNIQUE (facultyid, gradeid, groupnum, formid); -- diff --git a/db/postgresql/tables_and_views.sql b/db/postgresql/tables_and_views.sql index d804387f8..50581fecb 100644 --- a/db/postgresql/tables_and_views.sql +++ b/db/postgresql/tables_and_views.sql @@ -936,7 +936,7 @@ CREATE TABLE study_groups ( gradeid integer NOT NULL, groupnum integer NOT NULL, facultyid integer NOT NULL, - formid fulltime_parttime_evening DEFAULT fulltime NOT NULL + formid fulltime_parttime_evening DEFAULT 'fulltime' NOT NULL ); -- GitLab