From: Galen Charlton Date: Thu, 13 Aug 2020 15:30:58 +0000 (-0400) Subject: LP#1869898: stamp DB update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5ac17c3524ebcecfc5e0e34b27cc629121b03c32;p=Evergreen.git LP#1869898: stamp DB update Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 02bab54b56..f5091efeb5 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 ('1211', :eg_version); -- Dyrcona/rhamby/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1212', :eg_version); -- berick/sandbergja/gmcharlt CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1212.data.ang-cat-default.sql b/Open-ILS/src/sql/Pg/upgrade/1212.data.ang-cat-default.sql new file mode 100644 index 0000000000..c25e7adfb3 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1212.data.ang-cat-default.sql @@ -0,0 +1,18 @@ + +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1212', :eg_version); -- berick/sandbergja/gmcharlt + +DELETE FROM actor.org_unit_setting + WHERE name = 'ui.staff.angular_catalog.enabled'; + +DELETE FROM config.org_unit_setting_type_log + WHERE field_name = 'ui.staff.angular_catalog.enabled'; + +DELETE FROM config.org_unit_setting_type + WHERE name = 'ui.staff.angular_catalog.enabled'; + +-- activate the stock hold-for-bib server print template +UPDATE config.print_template SET active = TRUE WHERE name = 'holds_for_bib'; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-cat-default.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-cat-default.sql deleted file mode 100644 index 96f44657a9..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-cat-default.sql +++ /dev/null @@ -1,18 +0,0 @@ - -BEGIN; - --- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version); - -DELETE FROM actor.org_unit_setting - WHERE name = 'ui.staff.angular_catalog.enabled'; - -DELETE FROM config.org_unit_setting_type_log - WHERE field_name = 'ui.staff.angular_catalog.enabled'; - -DELETE FROM config.org_unit_setting_type - WHERE name = 'ui.staff.angular_catalog.enabled'; - --- activate the stock hold-for-bib server print template -UPDATE config.print_template SET active = TRUE WHERE name = 'holds_for_bib'; - -COMMIT;