LP1821950, LP198049 - Stamping upgrade script
authorMichele Morgan <mmorgan@noblenet.org>
Thu, 13 Oct 2022 18:00:09 +0000 (14:00 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Thu, 13 Oct 2022 18:00:09 +0000 (14:00 -0400)
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1337.data.ou_setting_required_callno_label.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.lp1821950-call-number-label-required-yaous.sql [deleted file]

index ba43820..ddf48da 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 ('1336', :eg_version); -- khuckins/berick/mrylander/tmccanna/sandbergja
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1337', :eg_version); -- khuckins/tmccanna/cmorgan/willis/mmorgan
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1337.data.ou_setting_required_callno_label.sql b/Open-ILS/src/sql/Pg/upgrade/1337.data.ou_setting_required_callno_label.sql
new file mode 100644 (file)
index 0000000..c6ea2c3
--- /dev/null
@@ -0,0 +1,19 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1337', :eg_version);
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class ) VALUES
+( 'cat.require_call_number_labels', 'cat',
+  oils_i18n_gettext('cat.require_call_number_labels',
+    'Require call number labels in Copy Editor',
+    'coust', 'label'),
+  oils_i18n_gettext('cat.require_call_number_labels',
+    'Define whether Copy Editor requires Call Number labels',
+    'coust', 'description'),
+  'bool', null);
+
+INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES
+  (1, 'cat.require_call_number_labels', 'true');
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1821950-call-number-label-required-yaous.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1821950-call-number-label-required-yaous.sql
deleted file mode 100644 (file)
index a0c7870..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.org_unit_setting_type
-( name, grp, label, description, datatype, fm_class ) VALUES
-( 'cat.require_call_number_labels', 'cat',
-  oils_i18n_gettext('cat.require_call_number_labels',
-    'Require call number labels in Copy Editor',
-    'coust', 'label'),
-  oils_i18n_gettext('cat.require_call_number_labels',
-    'Define whether Copy Editor requires Call Number labels',
-    'coust', 'description'),
-  'bool', null);
-
-INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES
-  (1, 'cat.require_call_number_labels', 'true');
-
-COMMIT;
\ No newline at end of file