LP1956003 Stamping DB upgrade / hold group grids
authorBill Erickson <berickxx@gmail.com>
Wed, 16 Mar 2022 20:10:29 +0000 (16:10 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 16 Mar 2022 20:15:15 +0000 (16:15 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1313.data.hold_group_ws_settings.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/xxxx.data.hold_group_ws_settings.sql [deleted file]

index 82b023d..7f52d01 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 ('1312', :eg_version); -- csharp/berick
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1313', :eg_version); -- alynn26/berick
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1313.data.hold_group_ws_settings.sql b/Open-ILS/src/sql/Pg/upgrade/1313.data.hold_group_ws_settings.sql
new file mode 100644 (file)
index 0000000..62bcc9c
--- /dev/null
@@ -0,0 +1,36 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1313', :eg_version); -- alynn26
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.grid.cat.bucket.batch_hold.view', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.cat.bucket.batch_hold.view',
+        'Grid Config: eg.grid.cat.bucket.batch_hold.view',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.cat.bucket.batch_hold.pending', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.cat.bucket.batch_hold.pending',
+        'Grid Config: eg.grid.cat.bucket.batch_hold.pending',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.cat.bucket.batch_hold.events', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.cat.bucket.batch_hold.events',
+        'Grid Config: eg.grid.cat.bucket.batch_hold.events',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.cat.bucket.batch_hold.list', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.cat.bucket.batch_hold.list',
+        'Grid Config: eg.grid.cat.bucket.batch_hold.list',
+        'cwst', 'label'
+    )
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.hold_group_ws_settings.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.hold_group_ws_settings.sql
deleted file mode 100644 (file)
index eba4e95..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version); -- alynn26
-
-INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
-VALUES (
-    'eg.grid.cat.bucket.batch_hold.view', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.cat.bucket.batch_hold.view',
-        'Grid Config: eg.grid.cat.bucket.batch_hold.view',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.cat.bucket.batch_hold.pending', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.cat.bucket.batch_hold.pending',
-        'Grid Config: eg.grid.cat.bucket.batch_hold.pending',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.cat.bucket.batch_hold.events', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.cat.bucket.batch_hold.events',
-        'Grid Config: eg.grid.cat.bucket.batch_hold.events',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.cat.bucket.batch_hold.list', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.cat.bucket.batch_hold.list',
-        'Grid Config: eg.grid.cat.bucket.batch_hold.list',
-        'cwst', 'label'
-    )
-);
-
-COMMIT;