From: Michele Morgan Date: Thu, 13 Oct 2022 18:00:09 +0000 (-0400) Subject: LP1821950, LP198049 - Stamping upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=58bd3eb1af4e89764315ccfb769e8f1d7d137faf;p=working%2FEvergreen.git LP1821950, LP198049 - Stamping upgrade script Signed-off-by: Michele Morgan --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index ba43820ba1..ddf48dada3 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 index 0000000000..c6ea2c3046 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1337.data.ou_setting_required_callno_label.sql @@ -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 index a0c7870af7..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1821950-call-number-label-required-yaous.sql +++ /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