LP 1942645: stamp upgrade script
authorJane Sandberg <sandbergja@gmail.com>
Tue, 14 Dec 2021 21:02:15 +0000 (13:02 -0800)
committerJane Sandberg <sandbergja@gmail.com>
Tue, 14 Dec 2021 21:08:53 +0000 (13:08 -0800)
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1309.schema.update_course_module_term_constraints.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.update_course_module_term_constraints.sql [deleted file]

index 00283f5..952971b 100644 (file)
@@ -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 (file)
index 0000000..146a339
--- /dev/null
@@ -0,0 +1,11 @@
+BEGIN;\r
+\r
+SELECT evergreen.upgrade_deps_block_check('1309', :eg_version);\r
+\r
+ALTER TABLE asset.course_module_term\r
+        DROP CONSTRAINT course_module_term_name_key;\r
+\r
+ALTER TABLE asset.course_module_term\r
+        ADD CONSTRAINT cmt_once_per_owning_lib UNIQUE (owning_lib, name);\r
+\r
+COMMIT;\r
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 (file)
index e4cbfe7..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-BEGIN;\r
-\r
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);\r
-\r
-ALTER TABLE asset.course_module_term\r
-        DROP CONSTRAINT course_module_term_name_key;\r
-\r
-ALTER TABLE asset.course_module_term\r
-        ADD CONSTRAINT cmt_once_per_owning_lib UNIQUE (owning_lib, name);\r
-\r
-COMMIT;\r