Stamping 'patron credit disable' setting
authorDan Wells <dbw2@calvin.edu>
Thu, 26 Sep 2013 13:52:04 +0000 (09:52 -0400)
committerDan Wells <dbw2@calvin.edu>
Thu, 26 Sep 2013 13:52:04 +0000 (09:52 -0400)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0835.data.yaous-disable-patron-credit.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-disable-patron-credit.sql [deleted file]

index 5070bf5..c6a4e0d 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 ('0834', :eg_version); -- berick/dbwells
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0835', :eg_version); -- berick/dbwells
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0835.data.yaous-disable-patron-credit.sql b/Open-ILS/src/sql/Pg/upgrade/0835.data.yaous-disable-patron-credit.sql
new file mode 100644 (file)
index 0000000..a0fb286
--- /dev/null
@@ -0,0 +1,25 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0835', :eg_version);
+
+INSERT INTO config.org_unit_setting_type 
+    (grp, name, datatype, label, description) 
+VALUES (
+    'finance',
+    'circ.disable_patron_credit',
+    'bool',
+    oils_i18n_gettext(
+        'circ.disable_patron_credit',
+        'Disable Patron Credit',
+        'coust',
+        'label'
+    ),
+    oils_i18n_gettext(
+        'circ.disable_patron_credit',
+        'Do not allow patrons to accrue credit or pay fines/fees with accrued credit',
+        'coust',
+        'description'
+    )
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-disable-patron-credit.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-disable-patron-credit.sql
deleted file mode 100644 (file)
index 3113e40..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.org_unit_setting_type 
-    (grp, name, datatype, label, description) 
-VALUES (
-    'finance',
-    'circ.disable_patron_credit',
-    'bool',
-    oils_i18n_gettext(
-        'circ.disable_patron_credit',
-        'Disable Patron Credit',
-        'coust',
-        'label'
-    ),
-    oils_i18n_gettext(
-        'circ.disable_patron_credit',
-        'Do not allow patrons to accrue credit or pay fines/fees with accrued credit',
-        'coust',
-        'description'
-    )
-);
-
-COMMIT;