LP1913604 - Stamping upgrade script
authorMichele Morgan <mmorgan@noblenet.org>
Tue, 18 Oct 2022 21:05:29 +0000 (17:05 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Tue, 18 Oct 2022 21:05:29 +0000 (17:05 -0400)
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1339.schema.course_original_circ_lib.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/xxxx.schema.course_original_circ_lib.sql [deleted file]

index 8972ee8..f9cc708 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 ('1338', :eg_version); -- mmorgan/gcollum/sandbergja
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1339', :eg_version); -- khuckins/sandbergja/mmorgan
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1339.schema.course_original_circ_lib.sql b/Open-ILS/src/sql/Pg/upgrade/1339.schema.course_original_circ_lib.sql
new file mode 100644 (file)
index 0000000..a417f56
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1339', :eg_version);
+
+ALTER TABLE asset.course_module_course_materials
+    ADD COLUMN original_circ_lib INT REFERENCES actor.org_unit (id);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.course_original_circ_lib.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.course_original_circ_lib.sql
deleted file mode 100644 (file)
index c9e0473..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-ALTER TABLE asset.course_module_course_materials
-    ADD COLUMN original_circ_lib INT REFERENCES actor.org_unit (id);
-
-COMMIT;
\ No newline at end of file