LP#1837059: stamp DB update
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 6 Aug 2019 00:58:34 +0000 (20:58 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 6 Aug 2019 00:58:34 +0000 (20:58 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1172.data.local-admin-settings.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.local-admin-settings.sql [deleted file]

index 894f540..80581d1 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 ('1171', :eg_version); -- rhamby/mstroup/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1172', :eg_version); -- berick/gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1172.data.local-admin-settings.sql b/Open-ILS/src/sql/Pg/upgrade/1172.data.local-admin-settings.sql
new file mode 100644 (file)
index 0000000..152e7d9
--- /dev/null
@@ -0,0 +1,67 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1172', :eg_version);
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label) 
+VALUES (
+    'eg.grid.admin.local.config.hold_matrix_matchpoint', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.local.config.hold_matrix_matchpoint',
+        'Grid Config: admin.local.config.hold_matrix_matchpoint',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.local.actor.address_alert', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.local.actor.address_alert',
+        'Grid Config: admin.local.actor.address_alert',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.local.config.barcode_completion', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.local.config.barcode_completion',
+        'Grid Config: admin.local.config.barcode_completion',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.local.actor.copy_alert_suppress', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.local.actor.copy_alert_suppress',
+        'Grid Config: admin.local.actor.copy_alert_suppress',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.local.asset.copy_location', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.local.asset.copy_location',
+        'Grid Config: admin.local.asset.copy_location',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.local.asset.copy_tag', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.local.asset.copy_tag',
+        'Grid Config: admin.local.asset.copy_tag',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.local.permission.grp_penalty_threshold', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.local.permission.grp_penalty_threshold',
+        'Grid Config: admin.local.permission.grp_penalty_threshold',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.local.config.non_cataloged_type', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.local.config.non_cataloged_type',
+        'Grid Config: admin.local.config.non_cataloged_type',
+        'cwst', 'label'
+    )
+);
+
+-- eg.grid.admin.local.rating.badge already exists
+
+COMMIT;
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.local-admin-settings.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.local-admin-settings.sql
deleted file mode 100644 (file)
index 2b2123e..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version);
-
-INSERT INTO config.workstation_setting_type (name, grp, datatype, label) 
-VALUES (
-    'eg.grid.admin.local.config.hold_matrix_matchpoint', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.admin.local.config.hold_matrix_matchpoint',
-        'Grid Config: admin.local.config.hold_matrix_matchpoint',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.admin.local.actor.address_alert', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.admin.local.actor.address_alert',
-        'Grid Config: admin.local.actor.address_alert',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.admin.local.config.barcode_completion', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.admin.local.config.barcode_completion',
-        'Grid Config: admin.local.config.barcode_completion',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.admin.local.actor.copy_alert_suppress', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.admin.local.actor.copy_alert_suppress',
-        'Grid Config: admin.local.actor.copy_alert_suppress',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.admin.local.asset.copy_location', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.admin.local.asset.copy_location',
-        'Grid Config: admin.local.asset.copy_location',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.admin.local.asset.copy_tag', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.admin.local.asset.copy_tag',
-        'Grid Config: admin.local.asset.copy_tag',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.admin.local.permission.grp_penalty_threshold', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.admin.local.permission.grp_penalty_threshold',
-        'Grid Config: admin.local.permission.grp_penalty_threshold',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.admin.local.config.non_cataloged_type', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.admin.local.config.non_cataloged_type',
-        'Grid Config: admin.local.config.non_cataloged_type',
-        'cwst', 'label'
-    )
-);
-
--- eg.grid.admin.local.rating.badge already exists
-
-COMMIT;
-