LP#1908576: Stamp Upgrade Script
authorJason Boyer <JBoyer@equinoxOLI.org>
Wed, 17 May 2023 14:59:17 +0000 (10:59 -0400)
committerJason Boyer <JBoyer@equinoxOLI.org>
Wed, 17 May 2023 20:02:02 +0000 (16:02 -0400)
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1377.data.login_redirect_regexp.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.login_redirect_regexp.sql [deleted file]

index f741994..a29de85 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 ('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 (file)
index 0000000..0078413
--- /dev/null
@@ -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 (file)
index c8a5f98..0000000
+++ /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;
-