LP#1712854 Stamping DB upgrade for hold UIs sort/speed
authorBill Erickson <berickxx@gmail.com>
Tue, 4 Sep 2018 17:37:33 +0000 (13:37 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 4 Sep 2018 18:03:26 +0000 (14:03 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1124.data.wide_holds-workstation-settings.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql [deleted file]

index c2ace32..5fb343d 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 ('1123', :eg_version); -- cesardv/berick/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1124', :eg_version); -- miker/kmlussier/berick
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1124.data.wide_holds-workstation-settings.sql b/Open-ILS/src/sql/Pg/upgrade/1124.data.wide_holds-workstation-settings.sql
new file mode 100644 (file)
index 0000000..d45c4d7
--- /dev/null
@@ -0,0 +1,25 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1124', :eg_version);
+
+INSERT into config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.grid.circ.wide_holds.shelf', 'gui', 'object',
+    oils_i18n_gettext (
+        'eg.grid.circ.wide_holds.shelf',
+        'Grid Config: circ.wide_holds.shelf',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.cat.catalog.wide_holds', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.cat.catalog.wide_holds',
+        'Grid Config: cat.catalog.wide_holds',
+        'cwst', 'label'
+    )
+);
+
+DELETE from config.workstation_setting_type
+WHERE name = 'eg.grid.cat.catalog.holds' OR name = 'eg.grid.circ.holds.shelf';
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql
deleted file mode 100644 (file)
index e693d68..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-BEGIN;
-
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.workstation_setting_type (name, grp, datatype, label)
-VALUES (
-    'eg.grid.circ.wide_holds.shelf', 'gui', 'object',
-    oils_i18n_gettext (
-        'eg.grid.circ.wide_holds.shelf',
-        'Grid Config: circ.wide_holds.shelf',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.cat.catalog.wide_holds', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.cat.catalog.wide_holds',
-        'Grid Config: cat.catalog.wide_holds',
-        'cwst', 'label'
-    )
-);
-
-DELETE from config.workstation_setting_type
-WHERE name = 'eg.grid.cat.catalog.holds' OR name = 'eg.grid.circ.holds.shelf';
-
-COMMIT;