LP#1198475: Wrapping upgrade script for lost and paid copy status.
authorJason Stephenson <jstephenson@mvlc.org>
Mon, 14 Jul 2014 12:37:30 +0000 (08:37 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 14 Jul 2014 12:37:30 +0000 (08:37 -0400)
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0886.data.lost-and-paid-status.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.lost-and-paid-status.sql [deleted file]

index 69e0e7f..7de740b 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 ('0885', :eg_version); -- depesz/dyrcona/miker/kmlussier/bshum
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0886', :eg_version); -- dyrcona/kmlussier/rogan
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0886.data.lost-and-paid-status.sql b/Open-ILS/src/sql/Pg/upgrade/0886.data.lost-and-paid-status.sql
new file mode 100644 (file)
index 0000000..176090f
--- /dev/null
@@ -0,0 +1,22 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0886', :eg_version);
+
+INSERT INTO config.copy_status
+(id, name, holdable, opac_visible, copy_active, restrict_copy_delete)
+VALUES (17, 'Lost and Paid', FALSE, FALSE, FALSE, TRUE);
+
+INSERT INTO config.org_unit_setting_type
+(name, grp, label, description, datatype)
+VALUES
+('circ.use_lost_paid_copy_status',
+ 'circ',
+ oils_i18n_gettext('circ.use_lost_paid_copy_status',
+     'Use Lost and Paid copy status',
+     'coust', 'label'),
+ oils_i18n_gettext('circ.use_lost_paid_copy_status',
+     'Use Lost and Paid copy status when lost or long overdue billing is paid',
+     'coust', 'description'),
+ 'bool');
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lost-and-paid-status.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lost-and-paid-status.sql
deleted file mode 100644 (file)
index 9454de5..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-INSERT INTO config.copy_status
-(id, name, holdable, opac_visible, copy_active, restrict_copy_delete)
-VALUES (17, 'Lost and Paid', FALSE, FALSE, FALSE, TRUE);
-
-INSERT INTO config.org_unit_setting_type
-(name, grp, label, description, datatype)
-VALUES
-('circ.use_lost_paid_copy_status',
- 'circ',
- oils_i18n_gettext('circ.use_lost_paid_copy_status',
-     'Use Lost and Paid copy status',
-     'coust', 'label'),
- oils_i18n_gettext('circ.use_lost_paid_copy_status',
-     'Use Lost and Paid copy status when lost or long overdue billing is paid',
-     'coust', 'description'),
- 'bool');
-