Stamping upgrade for truncate-to-max-fine
authorMike Rylander <mrylander@gmail.com>
Tue, 5 Mar 2013 20:13:32 +0000 (15:13 -0500)
committerMike Rylander <mrylander@gmail.com>
Tue, 5 Mar 2013 20:13:32 +0000 (15:13 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/0763.data.truncate-to-max-fine-setting.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.truncate-to-max-fine-setting.sql [deleted file]

index 377e4b9..fd33d42 100644 (file)
@@ -90,7 +90,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 ('0762', :eg_version); -- miker/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0763', :eg_version); -- jeff/miker
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
index 51d608f..829dafa 100644 (file)
@@ -12030,6 +12030,21 @@ INSERT INTO config.org_unit_setting_type
         'integer'
     );
 
+INSERT INTO config.org_unit_setting_type (
+    name, label, grp, datatype
+) VALUES (
+    'circ.fines.truncate_to_max_fine',
+    oils_i18n_gettext(
+        'circ.fines.truncate_to_max_fine',
+        'Truncate fines to max fine amount',
+        'coust',
+        'label'
+    ),
+    'circ',
+    'bool'
+);
+
+
 INSERT INTO config.settings_group (name, label)
     VALUES (
         'url_verify',
diff --git a/Open-ILS/src/sql/Pg/upgrade/0763.data.truncate-to-max-fine-setting.sql b/Open-ILS/src/sql/Pg/upgrade/0763.data.truncate-to-max-fine-setting.sql
new file mode 100644 (file)
index 0000000..6d04a42
--- /dev/null
@@ -0,0 +1,15 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0763', :eg_version);
+
+INSERT INTO config.org_unit_setting_type (
+    name, label, grp, datatype
+) VALUES (
+    'circ.fines.truncate_to_max_fine',
+    'Truncate fines to max fine amount',
+    'circ',
+    'bool'
+);
+
+COMMIT;
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.truncate-to-max-fine-setting.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.truncate-to-max-fine-setting.sql
deleted file mode 100644 (file)
index f9fd754..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.org_unit_setting_type (
-    name, label, grp, datatype
-) VALUES (
-    'circ.fines.truncate_to_max_fine',
-    'Truncate fines to max fine amount',
-    'circ',
-    'bool'
-);
-
-COMMIT;
-