LP#1759382: stamp schema update
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 23 Sep 2021 15:00:35 +0000 (11:00 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 23 Sep 2021 15:05:54 +0000 (11:05 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1297.data.staff_placed_holds_default_to_ws_ou.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/xxxx.data.staff_placed_holds_default_to_ws_ou.sql [deleted file]

index 61afa1e..0c57c8d 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 ('1296', :eg_version); -- csharp / rfrasur / gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1297', :eg_version); -- dbriem / gmonti / gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1297.data.staff_placed_holds_default_to_ws_ou.sql b/Open-ILS/src/sql/Pg/upgrade/1297.data.staff_placed_holds_default_to_ws_ou.sql
new file mode 100644 (file)
index 0000000..6df3983
--- /dev/null
@@ -0,0 +1,25 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1297', :eg_version);
+
+INSERT INTO config.org_unit_setting_type (
+    name, grp, label, description, datatype
+) VALUES (
+    'circ.staff_placed_holds_default_to_ws_ou',
+    'circ',
+    oils_i18n_gettext(
+        'circ.staff_placed_holds_default_to_ws_ou',
+        'Workstation OU is the default for staff-placed holds',
+        'coust',
+        'label'
+    ),
+    oils_i18n_gettext(
+        'circ.staff_placed_holds_default_to_ws_ou',
+        'For staff-placed holds, regardless of the patron preferred pickup location, the staff workstation OU is the default pickup location',
+        'coust',
+        'description'
+    ),
+    'bool'
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.staff_placed_holds_default_to_ws_ou.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.staff_placed_holds_default_to_ws_ou.sql
deleted file mode 100644 (file)
index 86196f8..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
-
-INSERT INTO config.org_unit_setting_type (
-    name, grp, label, description, datatype
-) VALUES (
-    'circ.staff_placed_holds_default_to_ws_ou',
-    'circ',
-    oils_i18n_gettext(
-        'circ.staff_placed_holds_default_to_ws_ou',
-        'Workstation OU is the default for staff-placed holds',
-        'coust',
-        'label'
-    ),
-    oils_i18n_gettext(
-        'circ.staff_placed_holds_default_to_ws_ou',
-        'For staff-placed holds, regardless of the patron preferred pickup location, the staff workstation OU is the default pickup location',
-        'coust',
-        'description'
-    ),
-    'bool'
-);
-
-COMMIT;