Stamping upgrade for ACQ org setting group
authorBill Erickson <berick@esilibrary.com>
Fri, 25 May 2012 18:54:23 +0000 (14:54 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 25 May 2012 18:54:23 +0000 (14:54 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0715.data.add_acq_config_group.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_acq_config_group.sql [deleted file]

index 9ccef4e..fe2a1da 100644 (file)
@@ -87,7 +87,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 ('0714', :eg_version); -- berick/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0715', :eg_version); -- dbs/berick
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0715.data.add_acq_config_group.sql b/Open-ILS/src/sql/Pg/upgrade/0715.data.add_acq_config_group.sql
new file mode 100644 (file)
index 0000000..00269a2
--- /dev/null
@@ -0,0 +1,12 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0715', :eg_version);
+
+INSERT INTO config.settings_group (name, label) VALUES
+('acq', oils_i18n_gettext('config.settings_group.system', 'Acquisitions', 'coust', 'label'));
+
+UPDATE config.org_unit_setting_type
+    SET grp = 'acq'
+    WHERE name LIKE 'acq%';
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_acq_config_group.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_acq_config_group.sql
deleted file mode 100644 (file)
index a094b8a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-INSERT INTO config.settings_group (name, label) VALUES
-('acq', oils_i18n_gettext('config.settings_group.system', 'Acquisitions', 'coust', 'label'));
-
-UPDATE config.org_unit_setting_type
-    SET grp = 'acq'
-    WHERE name LIKE 'acq%';