From: Jason Boyer Date: Wed, 17 May 2023 14:59:17 +0000 (-0400) Subject: LP#1908576: Stamp Upgrade Script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8f3f2029cbe3c3a2e1535d69939ce5aaf4cb0711;p=Evergreen.git LP#1908576: Stamp Upgrade Script Signed-off-by: Jason Boyer --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 970cf0dafb..4dcbad704f 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 ('1376', :eg_version); -- gmcharlt / csharp +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1377', :eg_version); -- miker / Dyrcona / JBoyer CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1377.data.login_redirect_regexp.sql b/Open-ILS/src/sql/Pg/upgrade/1377.data.login_redirect_regexp.sql new file mode 100644 index 0000000000..007841343b --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1377.data.login_redirect_regexp.sql @@ -0,0 +1,21 @@ +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('1377', :eg_version); + +-- 950.data.seed-values.sql + +INSERT INTO config.global_flag (name, value, enabled, label) +VALUES ( + 'opac.login_redirect_domains', + '', + TRUE, + oils_i18n_gettext( + 'opac.login_redirect_domains', + 'Restrict post-login redirection to local URLs, or those that match the supplied comma-separated list of foreign domains or host names.', + 'cgf', 'label' + ) +); + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.login_redirect_regexp.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.login_redirect_regexp.sql deleted file mode 100644 index c8a5f98f3a..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.login_redirect_regexp.sql +++ /dev/null @@ -1,21 +0,0 @@ -BEGIN; - --- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - --- 950.data.seed-values.sql - -INSERT INTO config.global_flag (name, value, enabled, label) -VALUES ( - 'opac.login_redirect_domains', - '', - TRUE, - oils_i18n_gettext( - 'opac.login_redirect_domains', - 'Restrict post-login redirection to local URLs, or those that match the supplied comma-separated list of foreign domains or host names.', - 'cgf', 'label' - ) -); - -COMMIT; -