Stamping upgrade for payment limits.
authorMike Rylander <mrylander@gmail.com>
Tue, 9 Aug 2016 16:46:07 +0000 (12:46 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 9 Aug 2016 16:46:07 +0000 (12:46 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0987.data.lp1183964_payment_limit.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX_lp1183964_payment_limit.sql [deleted file]

index 8e08b18..963eb22 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 ('0986', :eg_version); -- dpearl/dyrcona/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0987', :eg_version); -- jboyer/miker
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0987.data.lp1183964_payment_limit.sql b/Open-ILS/src/sql/Pg/upgrade/0987.data.lp1183964_payment_limit.sql
new file mode 100644 (file)
index 0000000..6ede64e
--- /dev/null
@@ -0,0 +1,33 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0987', :eg_version);
+
+INSERT INTO config.org_unit_setting_type ( name, grp, label, description, datatype )
+    VALUES (
+        'ui.circ.billing.amount_limit', 'gui',
+        oils_i18n_gettext(
+            'ui.circ.billing.amount_limit',
+            'Maximum payment amount allowed.',
+            'coust', 'label'),
+        oils_i18n_gettext(
+            'ui.circ.billing.amount_limit',
+            'The payment amount in the Patron Bills interface may not exceed the value of this setting.',
+            'coust', 'description'),
+        'currency'
+    );
+
+INSERT INTO config.org_unit_setting_type ( name, grp, label, description, datatype )
+    VALUES (
+        'ui.circ.billing.amount_warn', 'gui',
+        oils_i18n_gettext(
+            'ui.circ.billing.amount_warn',
+            'Payment amount threshold for Are You Sure? dialog.',
+            'coust', 'label'),
+        oils_i18n_gettext(
+            'ui.circ.billing.amount_warn',
+            'In the Patron Bills interface, a payment attempt will warn if the amount exceeds the value of this setting.',
+            'coust', 'description'),
+        'currency'
+    );
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX_lp1183964_payment_limit.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX_lp1183964_payment_limit.sql
deleted file mode 100644 (file)
index d48593e..0000000
+++ /dev/null
@@ -1,33 +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 (
-        'ui.circ.billing.amount_limit', 'gui',
-        oils_i18n_gettext(
-            'ui.circ.billing.amount_limit',
-            'Maximum payment amount allowed.',
-            'coust', 'label'),
-        oils_i18n_gettext(
-            'ui.circ.billing.amount_limit',
-            'The payment amount in the Patron Bills interface may not exceed the value of this setting.',
-            'coust', 'description'),
-        'currency'
-    );
-
-INSERT INTO config.org_unit_setting_type ( name, grp, label, description, datatype )
-    VALUES (
-        'ui.circ.billing.amount_warn', 'gui',
-        oils_i18n_gettext(
-            'ui.circ.billing.amount_warn',
-            'Payment amount threshold for Are You Sure? dialog.',
-            'coust', 'label'),
-        oils_i18n_gettext(
-            'ui.circ.billing.amount_warn',
-            'In the Patron Bills interface, a payment attempt will warn if the amount exceeds the value of this setting.',
-            'coust', 'description'),
-        'currency'
-    );
-
-COMMIT;