LP#1937299: stamp DB update
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 12 Aug 2021 14:00:30 +0000 (10:00 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 12 Aug 2021 14:00:30 +0000 (10:00 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1272.data.patron_collections_exempt.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.patron_collections_exempt.sql [deleted file]

index 1b1ea76..690ff23 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 ('1271', :eg_version); -- phasefx/tmcanna/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1272', :eg_version); -- JBoyer/tmcanna/gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1272.data.patron_collections_exempt.sql b/Open-ILS/src/sql/Pg/upgrade/1272.data.patron_collections_exempt.sql
new file mode 100644 (file)
index 0000000..27ca67a
--- /dev/null
@@ -0,0 +1,43 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1272', :eg_version);
+
+DO $$
+BEGIN
+
+  PERFORM FROM config.usr_setting_type WHERE name = 'circ.collections.exempt';
+
+  IF NOT FOUND THEN
+
+    INSERT INTO config.usr_setting_type (
+      name,
+      opac_visible,
+      label,
+      description,
+      datatype,
+      reg_default
+    ) VALUES (
+      'circ.collections.exempt',
+      FALSE,
+      oils_i18n_gettext(
+        'circ.collections.exempt',
+        'Collections: Exempt',
+        'cust',
+        'label'
+      ),
+      oils_i18n_gettext(
+        'circ.collections.exempt',
+        'User is exempt from collections tracking/processing',
+        'cust',
+        'description'
+      ),
+      'bool',
+      'false'
+    );
+
+  END IF;
+
+END
+$$;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.patron_collections_exempt.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.patron_collections_exempt.sql
deleted file mode 100644 (file)
index 1e7c407..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-DO $$
-BEGIN
-
-  PERFORM FROM config.usr_setting_type WHERE name = 'circ.collections.exempt';
-
-  IF NOT FOUND THEN
-
-    INSERT INTO config.usr_setting_type (
-      name,
-      opac_visible,
-      label,
-      description,
-      datatype,
-      reg_default
-    ) VALUES (
-      'circ.collections.exempt',
-      FALSE,
-      oils_i18n_gettext(
-        'circ.collections.exempt',
-        'Collections: Exempt',
-        'cust',
-        'label'
-      ),
-      oils_i18n_gettext(
-        'circ.collections.exempt',
-        'User is exempt from collections tracking/processing',
-        'cust',
-        'description'
-      ),
-      'bool',
-      'false'
-    );
-
-  END IF;
-
-END
-$$;
-
-COMMIT;