LP#1869898: stamp DB update
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 13 Aug 2020 15:30:58 +0000 (11:30 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 13 Aug 2020 15:30:58 +0000 (11:30 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1212.data.ang-cat-default.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-cat-default.sql [deleted file]

index 02bab54..f5091ef 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 ('1211', :eg_version); -- Dyrcona/rhamby/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1212', :eg_version); -- berick/sandbergja/gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1212.data.ang-cat-default.sql b/Open-ILS/src/sql/Pg/upgrade/1212.data.ang-cat-default.sql
new file mode 100644 (file)
index 0000000..c25e7ad
--- /dev/null
@@ -0,0 +1,18 @@
+
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1212', :eg_version); -- berick/sandbergja/gmcharlt
+
+DELETE FROM actor.org_unit_setting
+    WHERE name = 'ui.staff.angular_catalog.enabled';
+
+DELETE FROM config.org_unit_setting_type_log 
+    WHERE field_name = 'ui.staff.angular_catalog.enabled';
+
+DELETE FROM config.org_unit_setting_type
+    WHERE name = 'ui.staff.angular_catalog.enabled';
+
+-- activate the stock hold-for-bib server print template
+UPDATE config.print_template SET active = TRUE WHERE name = 'holds_for_bib';
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-cat-default.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-cat-default.sql
deleted file mode 100644 (file)
index 96f4465..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version);
-
-DELETE FROM actor.org_unit_setting
-    WHERE name = 'ui.staff.angular_catalog.enabled';
-
-DELETE FROM config.org_unit_setting_type_log 
-    WHERE field_name = 'ui.staff.angular_catalog.enabled';
-
-DELETE FROM config.org_unit_setting_type
-    WHERE name = 'ui.staff.angular_catalog.enabled';
-
--- activate the stock hold-for-bib server print template
-UPDATE config.print_template SET active = TRUE WHERE name = 'holds_for_bib';
-
-COMMIT;