LP#1361782: stamp DB update
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 23 Mar 2023 19:11:49 +0000 (15:11 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 23 Mar 2023 19:12:05 +0000 (15:12 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1361.data.concurrent_search_global_flags.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.concurrent_search_global_flags.sql [deleted file]

index e4374f0..b220fd4 100644 (file)
@@ -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 (file)
index 0000000..06aa613
--- /dev/null
@@ -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 (file)
index 750a6a8..0000000
+++ /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;
-