From: Jane Sandberg Date: Tue, 14 Dec 2021 21:02:15 +0000 (-0800) Subject: LP 1942645: stamp upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e79df5dd87a895a61d15fdc569d904d2642091a8;p=evergreen%2Ftadl.git LP 1942645: stamp upgrade script Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 00283f5046..952971b41f 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -92,7 +92,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1308', :eg_version); -- mrisher/rhamby/gmcharlt/sandbergja +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1309', :eg_version); -- malexander/willisb/sandbergja CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1309.schema.update_course_module_term_constraints.sql b/Open-ILS/src/sql/Pg/upgrade/1309.schema.update_course_module_term_constraints.sql new file mode 100644 index 0000000000..146a33988c --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1309.schema.update_course_module_term_constraints.sql @@ -0,0 +1,11 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1309', :eg_version); + +ALTER TABLE asset.course_module_term + DROP CONSTRAINT course_module_term_name_key; + +ALTER TABLE asset.course_module_term + ADD CONSTRAINT cmt_once_per_owning_lib UNIQUE (owning_lib, name); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.update_course_module_term_constraints.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.update_course_module_term_constraints.sql deleted file mode 100644 index e4cbfe7b15..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.update_course_module_term_constraints.sql +++ /dev/null @@ -1,11 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -ALTER TABLE asset.course_module_term - DROP CONSTRAINT course_module_term_name_key; - -ALTER TABLE asset.course_module_term - ADD CONSTRAINT cmt_once_per_owning_lib UNIQUE (owning_lib, name); - -COMMIT;