From: Galen Charlton Date: Thu, 23 Mar 2023 19:11:49 +0000 (-0400) Subject: LP#1361782: stamp DB update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=21e9855ce07369d90c2f159100fcf904a67d02ac;p=evergreen%2Fpines.git LP#1361782: 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 e4374f0c16..b220fd4a82 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 ('1360', :eg_version); -- bshum / Dyrcona / JBoyer +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1361', :eg_version); -- miker / Dyrcona / gmcharlt CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1361.data.concurrent_search_global_flags.sql b/Open-ILS/src/sql/Pg/upgrade/1361.data.concurrent_search_global_flags.sql new file mode 100644 index 0000000000..06aa6130c6 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1361.data.concurrent_search_global_flags.sql @@ -0,0 +1,31 @@ +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('1361', :eg_version); + +INSERT INTO config.global_flag (name, value, enabled, label) +VALUES ( + 'opac.max_concurrent_search.query', + '20', + TRUE, + oils_i18n_gettext( + 'opac.max_concurrent_search.query', + 'Limit the number of global concurrent matching search queries', + 'cgf', 'label' + ) +); + +INSERT INTO config.global_flag (name, value, enabled, label) +VALUES ( + 'opac.max_concurrent_search.ip', + '0', + TRUE, + oils_i18n_gettext( + 'opac.max_concurrent_search.ip', + 'Limit the number of global concurrent searches per client IP address', + 'cgf', 'label' + ) +); + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.concurrent_search_global_flags.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.concurrent_search_global_flags.sql deleted file mode 100644 index 750a6a820e..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.concurrent_search_global_flags.sql +++ /dev/null @@ -1,31 +0,0 @@ -BEGIN; - --- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT INTO config.global_flag (name, value, enabled, label) -VALUES ( - 'opac.max_concurrent_search.query', - '20', - TRUE, - oils_i18n_gettext( - 'opac.max_concurrent_search.query', - 'Limit the number of global concurrent matching search queries', - 'cgf', 'label' - ) -); - -INSERT INTO config.global_flag (name, value, enabled, label) -VALUES ( - 'opac.max_concurrent_search.ip', - '0', - TRUE, - oils_i18n_gettext( - 'opac.max_concurrent_search.ip', - 'Limit the number of global concurrent searches per client IP address', - 'cgf', 'label' - ) -); - -COMMIT; -