Wrap upgrade script for 0840 circulation column picker.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 8 Oct 2013 18:58:37 +0000 (14:58 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 8 Oct 2013 18:58:37 +0000 (14:58 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0840.data.circulation-policy-configuration.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.circulation-policy-configuration.sql [deleted file]

index 28685a1..6f68922 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 ('0839', :eg_version); -- eeevil/senator/dbwells
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0840', :eg_version); -- gcollum/dyrcona
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0840.data.circulation-policy-configuration.sql b/Open-ILS/src/sql/Pg/upgrade/0840.data.circulation-policy-configuration.sql
new file mode 100644 (file)
index 0000000..50c41fe
--- /dev/null
@@ -0,0 +1,24 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0840', :eg_version);
+
+INSERT INTO config.usr_setting_type (name,grp,opac_visible,label,description,datatype) VALUES (
+    'ui.grid_columns.conify.config.circ_matrix_matchpoint',
+    'gui',
+    FALSE,
+    oils_i18n_gettext(
+        'ui.grid_columns.conify.config.circ_matrix_matchpoint',
+        'Circulation Policy Configuration',
+        'cust',
+        'label'
+    ),
+    oils_i18n_gettext(
+        'ui.grid_columns.conify.config.circ_matrix_matchpoint',
+        'Circulation Policy Configuration Column Settings',
+        'cust',
+        'description'
+    ),
+    'string'
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.circulation-policy-configuration.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.circulation-policy-configuration.sql
deleted file mode 100644 (file)
index 81b91bb..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.usr_setting_type (name,grp,opac_visible,label,description,datatype) VALUES (
-    'ui.grid_columns.conify.config.circ_matrix_matchpoint',
-    'gui',
-    FALSE,
-    oils_i18n_gettext(
-        'ui.grid_columns.conify.config.circ_matrix_matchpoint',
-        'Circulation Policy Configuration',
-        'cust',
-        'label'
-    ),
-    oils_i18n_gettext(
-        'ui.grid_columns.conify.config.circ_matrix_matchpoint',
-        'Circulation Policy Configuration Column Settings',
-        'cust',
-        'description'
-    ),
-    'string'
-);
-
-COMMIT;