From: Galen Charlton Date: Wed, 29 Mar 2023 15:33:38 +0000 (-0400) Subject: LP#2007073: stamp DB update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=be9dd002e7756ae84d174c853cabbf667c65ffd3;p=Evergreen.git LP#2007073: 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 e9a24cada6..19adddd40f 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 ('1362', :eg_version); -- Dyrcona / gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1363', :eg_version); -- dbriem / smorrison / gmcharlt CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1363.schema.action.hold_request_cancel_cause.manual.sql b/Open-ILS/src/sql/Pg/upgrade/1363.schema.action.hold_request_cancel_cause.manual.sql new file mode 100644 index 0000000000..0e9f74f863 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1363.schema.action.hold_request_cancel_cause.manual.sql @@ -0,0 +1,22 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1363', :eg_version); + +ALTER TABLE action.hold_request_cancel_cause + ADD COLUMN manual BOOL NOT NULL DEFAULT FALSE; + +UPDATE action.hold_request_cancel_cause SET manual = TRUE + WHERE id IN ( + 2, -- Hold Shelf expiration + 3, -- Patron via phone + 4, -- Patron in person + 5 -- Staff forced + ); + +INSERT INTO action.hold_request_cancel_cause (id, label, manual) + VALUES (9, oils_i18n_gettext(9, 'Patron via email', 'ahrcc', 'label'), TRUE); + +INSERT INTO action.hold_request_cancel_cause (id, label, manual) + VALUES (10, oils_i18n_gettext(10, 'Patron via SMS', 'ahrcc', 'label'), TRUE); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.action.hold_request_cancel_cause.manual.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.action.hold_request_cancel_cause.manual.sql deleted file mode 100644 index a80576c055..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.action.hold_request_cancel_cause.manual.sql +++ /dev/null @@ -1,20 +0,0 @@ -BEGIN; - -ALTER TABLE action.hold_request_cancel_cause - ADD COLUMN manual BOOL NOT NULL DEFAULT FALSE; - -UPDATE action.hold_request_cancel_cause SET manual = TRUE - WHERE id IN ( - 2, -- Hold Shelf expiration - 3, -- Patron via phone - 4, -- Patron in person - 5 -- Staff forced - ); - -INSERT INTO action.hold_request_cancel_cause (id, label, manual) - VALUES (9, oils_i18n_gettext(9, 'Patron via email', 'ahrcc', 'label'), TRUE); - -INSERT INTO action.hold_request_cancel_cause (id, label, manual) - VALUES (10, oils_i18n_gettext(10, 'Patron via SMS', 'ahrcc', 'label'), TRUE); - -COMMIT;