From: Galen Charlton Date: Tue, 1 Oct 2019 21:24:16 +0000 (-0400) Subject: LP#1835085: stamp DB update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d4f8ba9cdd7ac42cb4881dbe50ee20e97e62e63f;p=Evergreen.git LP#1835085: 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 f96960c972..17b7556ca3 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 ('1189', :eg_version); -- Dyrcona/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1190', :eg_version); -- Dyrcona/gmcharlt CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1190.data.auto_renewal-not-desk_renewal.sql b/Open-ILS/src/sql/Pg/upgrade/1190.data.auto_renewal-not-desk_renewal.sql new file mode 100644 index 0000000000..fc5cc2d623 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1190.data.auto_renewal-not-desk_renewal.sql @@ -0,0 +1,9 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1190', :eg_version); + +UPDATE action.circulation SET desk_renewal = FALSE WHERE auto_renewal IS TRUE; + +UPDATE action.aged_circulation SET desk_renewal = FALSE WHERE auto_renewal IS TRUE; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.auto_renewal-not-desk_renewal.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.auto_renewal-not-desk_renewal.sql deleted file mode 100644 index 0afb614fa1..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.auto_renewal-not-desk_renewal.sql +++ /dev/null @@ -1,9 +0,0 @@ -BEGIN; - ---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -UPDATE action.circulation SET desk_renewal = FALSE WHERE auto_renewal IS TRUE; - -UPDATE action.aged_circulation SET desk_renewal = FALSE WHERE auto_renewal IS TRUE; - -COMMIT;