From: Jason Stephenson Date: Mon, 14 Jul 2014 12:37:30 +0000 (-0400) Subject: LP#1198475: Wrapping upgrade script for lost and paid copy status. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6cce3cd5e59eb2a247302467500c4b190a442586;p=evergreen%2Fpines.git LP#1198475: Wrapping upgrade script for lost and paid copy status. Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 69e0e7fc9f..7de740b181 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 index 0000000000..176090f0fb --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0886.data.lost-and-paid-status.sql @@ -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 index 9454de5e46..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lost-and-paid-status.sql +++ /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'); -