LP#1965446 Stamping upgrade script
authorMichele Morgan <mmorgan@noblenet.org>
Wed, 3 May 2023 19:08:56 +0000 (15:08 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Wed, 3 May 2023 19:08:56 +0000 (15:08 -0400)
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1373.schema.eparts.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.eparts.sql [deleted file]

index 7d1d8ca..a367c1f 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 ('1371', :eg_version); -- phasefx / sandbergja
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1373', :eg_version); -- phasefx / rfrasur / jweston / mmorgan
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1373.schema.eparts.sql b/Open-ILS/src/sql/Pg/upgrade/1373.schema.eparts.sql
new file mode 100644 (file)
index 0000000..a730f51
--- /dev/null
@@ -0,0 +1,33 @@
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('1373', :eg_version);
+
+-- 950.data.seed-values.sql
+
+INSERT INTO config.global_flag (name, value, enabled, label)
+VALUES (
+    'circ.holds.api_require_monographic_part_when_present',
+    NULL,
+    FALSE,
+    oils_i18n_gettext(
+        'circ.holds.api_require_monographic_part_when_present',
+        'Holds: Require Monographic Part When Present for hold check.',
+        'cgf', 'label'
+    )
+);
+
+INSERT INTO config.org_unit_setting_type (name, label, grp, description, datatype)
+VALUES (
+    'circ.holds.ui_require_monographic_part_when_present',
+    oils_i18n_gettext('circ.holds.ui_require_monographic_part_when_present',
+        'Require Monographic Part when Present',
+        'coust', 'label'),
+    'circ',
+    oils_i18n_gettext('circ.holds.ui_require_monographic_part_when_present',
+        'Normally the selection of a monographic part during hold placement is optional if there is at least one copy on the bib without a monographic part.  A true value for this setting will require part selection even under this condition.',
+        'coust', 'description'),
+    'bool'
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.eparts.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.eparts.sql
deleted file mode 100644 (file)
index f384372..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-BEGIN;
-
--- check whether patch can be applied
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
--- 950.data.seed-values.sql
-
-INSERT INTO config.global_flag (name, value, enabled, label)
-VALUES (
-    'circ.holds.api_require_monographic_part_when_present',
-    NULL,
-    FALSE,
-    oils_i18n_gettext(
-        'circ.holds.api_require_monographic_part_when_present',
-        'Holds: Require Monographic Part When Present for hold check.',
-        'cgf', 'label'
-    )
-);
-
-INSERT INTO config.org_unit_setting_type (name, label, grp, description, datatype)
-VALUES (
-    'circ.holds.ui_require_monographic_part_when_present',
-    oils_i18n_gettext('circ.holds.ui_require_monographic_part_when_present',
-        'Require Monographic Part when Present',
-        'coust', 'label'),
-    'circ',
-    oils_i18n_gettext('circ.holds.ui_require_monographic_part_when_present',
-        'Normally the selection of a monographic part during hold placement is optional if there is at least one copy on the bib without a monographic part.  A true value for this setting will require part selection even under this condition.',
-        'coust', 'description'),
-    'bool'
-);
-
-COMMIT;