LP#1533329: stamp DB update
authorGalen Charlton <gmc@esilibrary.com>
Thu, 3 Mar 2016 02:13:02 +0000 (21:13 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 3 Mar 2016 02:13:02 +0000 (21:13 -0500)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0969.data.restrict_opt_to_depth_setting.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.restrict_opt_to_depth_setting.sql [deleted file]

index 1ec157b..96263af 100644 (file)
@@ -91,7 +91,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 ('0968', :eg_version); -- jstompro/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0969', :eg_version); -- jeffdavis/stompro
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0969.data.restrict_opt_to_depth_setting.sql b/Open-ILS/src/sql/Pg/upgrade/0969.data.restrict_opt_to_depth_setting.sql
new file mode 100644 (file)
index 0000000..cb47c74
--- /dev/null
@@ -0,0 +1,21 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0969', :eg_version); -- jeffdavis/stompro
+
+INSERT INTO config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES
+        ('org.restrict_opt_to_depth',
+         'sec',
+         oils_i18n_gettext('org.restrict_opt_to_depth',
+            'Restrict patron opt-in to home library and related orgs at specified depth',
+            'coust', 'label'),
+         oils_i18n_gettext('org.restrict_opt_to_depth',
+            'Patrons at this library can only be opted-in at org units which are within the '||
+            'library''s section of the org tree, at or below the depth specified by this setting. '||
+            'They cannot be opted in at any other libraries.',
+            'coust', 'description'),
+        'integer');
+
+COMMIT;
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.restrict_opt_to_depth_setting.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.restrict_opt_to_depth_setting.sql
deleted file mode 100644 (file)
index 6e0a3d8..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.org_unit_setting_type
-    (name, grp, label, description, datatype)
-    VALUES
-        ('org.restrict_opt_to_depth',
-         'sec',
-         oils_i18n_gettext('org.restrict_opt_to_depth',
-            'Restrict patron opt-in to home library and related orgs at specified depth',
-            'coust', 'label'),
-         oils_i18n_gettext('org.restrict_opt_to_depth',
-            'Patrons at this library can only be opted-in at org units which are within the '||
-            'library''s section of the org tree, at or below the depth specified by this setting. '||
-            'They cannot be opted in at any other libraries.',
-            'coust', 'description'),
-        'integer');
-
-COMMIT;
-