LP#1861319: stamp schema update
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 10 Mar 2021 20:26:01 +0000 (15:26 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 10 Mar 2021 20:26:01 +0000 (15:26 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1251.data.org-setting-circ-renew-expired.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-circ-renew-expired.sql [deleted file]

index 336c27e..1581e3e 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 ('1250', :eg_version); -- miker/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1251', :eg_version); -- khuckins/Dyrcona/gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1251.data.org-setting-circ-renew-expired.sql b/Open-ILS/src/sql/Pg/upgrade/1251.data.org-setting-circ-renew-expired.sql
new file mode 100644 (file)
index 0000000..e999244
--- /dev/null
@@ -0,0 +1,24 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1251', :eg_version);
+
+INSERT INTO config.org_unit_setting_type
+    (grp, name, datatype, label, description)
+VALUES (
+    'circ',
+    'circ.renew.expired_patron_allow', 'bool',
+    oils_i18n_gettext(
+        'circ.renew.expired_patron_allow',
+        'Allow renewal request if renewal recipient privileges have expired',
+        'coust',
+        'label'
+    ),
+    oils_i18n_gettext(
+        'circ.renew.expired_patron_allow',
+        'If enabled, users within the org unit who are expired may still renew items.',
+        'coust',
+        'description'
+    )
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-circ-renew-expired.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-circ-renew-expired.sql
deleted file mode 100644 (file)
index 2194443..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.org_unit_setting_type
-    (grp, name, datatype, label, description)
-VALUES (
-    'circ',
-    'circ.renew.expired_patron_allow', 'bool',
-    oils_i18n_gettext(
-        'circ.renew.expired_patron_allow',
-        'Allow renewal request if renewal recipient privileges have expired',
-        'coust',
-        'label'
-    ),
-    oils_i18n_gettext(
-        'circ.renew.expired_patron_allow',
-        'If enabled, users within the org unit who are expired may still renew items.',
-        'coust',
-        'description'
-    )
-);
-
-COMMIT;