Stamping upgrade script for holds prefetch setting
authorDan Wells <dbw2@calvin.edu>
Thu, 18 Apr 2019 19:19:18 +0000 (15:19 -0400)
committerDan Wells <dbw2@calvin.edu>
Thu, 18 Apr 2019 19:20:59 +0000 (15:20 -0400)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1160.data.catalog-holds-prefetch.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.catalog-holds-prefetch.sql [deleted file]

index 06969d1..b236d92 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 ('1159', :eg_version); -- cesardv/willis/csharp
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1160', :eg_version); -- berick/dbwells
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1160.data.catalog-holds-prefetch.sql b/Open-ILS/src/sql/Pg/upgrade/1160.data.catalog-holds-prefetch.sql
new file mode 100644 (file)
index 0000000..74109ef
--- /dev/null
@@ -0,0 +1,15 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1160', :eg_version);
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'catalog.record.holds.prefetch', 'cat', 'bool',
+    oils_i18n_gettext(
+        'catalog.record.holds.prefetch',
+        'Pre-Fetch Record Holds',
+        'cwst', 'label'
+    )
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.catalog-holds-prefetch.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.catalog-holds-prefetch.sql
deleted file mode 100644 (file)
index 8de3ff2..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-BEGIN;
-
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
-VALUES (
-    'catalog.record.holds.prefetch', 'cat', 'bool',
-    oils_i18n_gettext(
-        'catalog.record.holds.prefetch',
-        'Pre-Fetch Record Holds',
-        'cwst', 'label'
-    )
-);
-
-COMMIT;