Stamped upgrade for opac_payment_history_age_limit
authorBill Erickson <berick@esilibrary.com>
Tue, 13 Sep 2011 17:00:53 +0000 (13:00 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 13 Sep 2011 17:00:53 +0000 (13:00 -0400)
...which is a new org setting defining how far back to reach for
payments to display in the payments history page in tpac.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0621.data.opac_payment_history_age_limit.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.opac_payment_history_age_limit.sql [deleted file]

index 13427af..c29ae27 100644 (file)
@@ -86,7 +86,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 ('0620', :eg_version); -- tsbere/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0621', :eg_version); -- berick
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0621.data.opac_payment_history_age_limit.sql b/Open-ILS/src/sql/Pg/upgrade/0621.data.opac_payment_history_age_limit.sql
new file mode 100644 (file)
index 0000000..2268dfb
--- /dev/null
@@ -0,0 +1,17 @@
+-- Evergreen DB patch XXXX.data.opac_payment_history_age_limit.sql
+
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0621', :eg_version);
+
+INSERT into config.org_unit_setting_type (name, label, description, datatype)
+VALUES (
+    'opac.payment_history_age_limit',
+    oils_i18n_gettext('opac.payment_history_age_limit',
+        'OPAC: Payment History Age Limit', 'coust', 'label'),
+    oils_i18n_gettext('opac.payment_history_age_limit',
+        'The OPAC should not display payments by patrons that are older than any interval defined here.', 'coust', 'label'),
+    'interval'
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.opac_payment_history_age_limit.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.opac_payment_history_age_limit.sql
deleted file mode 100644 (file)
index f8790ef..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
--- Evergreen DB patch XXXX.data.opac_payment_history_age_limit.sql
-
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.org_unit_setting_type (name, label, description, datatype)
-VALUES (
-    'opac.payment_history_age_limit',
-    oils_i18n_gettext('opac.payment_history_age_limit',
-        'OPAC: Payment History Age Limit', 'coust', 'label'),
-    oils_i18n_gettext('opac.payment_history_age_limit',
-        'The OPAC should not display payments by patrons that are older than any interval defined here.', 'coust', 'label'),
-    'interval'
-);
-
-COMMIT;