LP#980296: Stamping upgrade script for void lost on claims returned, etc.
authorBen Shum <bshum@biblio.org>
Tue, 13 Jan 2015 22:00:16 +0000 (17:00 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 13 Jan 2015 22:00:16 +0000 (17:00 -0500)
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0903.data.coust_void_lost_on_claimsreturned.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.coust_void_lost_on_claimsreturned.sql [deleted file]

index 54df622..aeda1b0 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 ('0902', :eg_version); -- miker/berick
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0903', :eg_version); -- dyrcona/kmlussier/bshum
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0903.data.coust_void_lost_on_claimsreturned.sql b/Open-ILS/src/sql/Pg/upgrade/0903.data.coust_void_lost_on_claimsreturned.sql
new file mode 100644 (file)
index 0000000..4ff9134
--- /dev/null
@@ -0,0 +1,49 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0903', :eg_version);
+
+INSERT INTO config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES
+        ('circ.void_lost_on_claimsreturned',
+         'circ',
+         oils_i18n_gettext('circ.void_lost_on_claimsreturned',
+             'Void lost item billing when claims returned',
+             'coust', 'label'),
+         oils_i18n_gettext('circ.void_lost_on_claimsreturned',
+             'Void lost item billing when claims returned',
+             'coust', 'description'),
+         'bool'),
+        ('circ.void_lost_proc_fee_on_claimsreturned',
+         'circ',
+         oils_i18n_gettext('circ.void_lost_proc_fee_on_claimsreturned',
+             'Void lost item processing fee when claims returned',
+             'coust', 'label'),
+         oils_i18n_gettext('circ.void_lost_proc_fee_on_claimsreturned',
+             'Void lost item processing fee when claims returned',
+             'coust', 'description'),
+         'bool');
+
+INSERT INTO config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES
+        ('circ.void_longoverdue_on_claimsreturned',
+         'circ',
+         oils_i18n_gettext('circ.void_longoverdue_on_claimsreturned',
+             'Void long overdue item billing when claims returned',
+             'coust', 'label'),
+         oils_i18n_gettext('circ.void_longoverdue_on_claimsreturned',
+             'Void long overdue item billing when claims returned',
+             'coust', 'description'),
+         'bool'),
+        ('circ.void_longoverdue_proc_fee_on_claimsreturned',
+         'circ',
+         oils_i18n_gettext('circ.void_longoverdue_proc_fee_on_claimsreturned',
+             'Void long overdue item processing fee when claims returned',
+             'coust', 'label'),
+         oils_i18n_gettext('circ.void_longoverdue_proc_fee_on_claimsreturned',
+             'Void long overdue item processing fee when claims returned',
+             'coust', 'description'),
+         'bool');
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.coust_void_lost_on_claimsreturned.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.coust_void_lost_on_claimsreturned.sql
deleted file mode 100644 (file)
index ebd170c..0000000
+++ /dev/null
@@ -1,49 +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
-        ('circ.void_lost_on_claimsreturned',
-         'circ',
-         oils_i18n_gettext('circ.void_lost_on_claimsreturned',
-             'Void lost item billing when claims returned',
-             'coust', 'label'),
-         oils_i18n_gettext('circ.void_lost_on_claimsreturned',
-             'Void lost item billing when claims returned',
-             'coust', 'description'),
-         'bool'),
-        ('circ.void_lost_proc_fee_on_claimsreturned',
-         'circ',
-         oils_i18n_gettext('circ.void_lost_proc_fee_on_claimsreturned',
-             'Void lost item processing fee when claims returned',
-             'coust', 'label'),
-         oils_i18n_gettext('circ.void_lost_proc_fee_on_claimsreturned',
-             'Void lost item processing fee when claims returned',
-             'coust', 'description'),
-         'bool');
-
-INSERT INTO config.org_unit_setting_type
-    (name, grp, label, description, datatype)
-    VALUES
-        ('circ.void_longoverdue_on_claimsreturned',
-         'circ',
-         oils_i18n_gettext('circ.void_longoverdue_on_claimsreturned',
-             'Void long overdue item billing when claims returned',
-             'coust', 'label'),
-         oils_i18n_gettext('circ.void_longoverdue_on_claimsreturned',
-             'Void long overdue item billing when claims returned',
-             'coust', 'description'),
-         'bool'),
-        ('circ.void_longoverdue_proc_fee_on_claimsreturned',
-         'circ',
-         oils_i18n_gettext('circ.void_longoverdue_proc_fee_on_claimsreturned',
-             'Void long overdue item processing fee when claims returned',
-             'coust', 'label'),
-         oils_i18n_gettext('circ.void_longoverdue_proc_fee_on_claimsreturned',
-             'Void long overdue item processing fee when claims returned',
-             'coust', 'description'),
-         'bool');
-
-COMMIT;