From: Jason Stephenson Date: Wed, 19 Aug 2015 17:34:47 +0000 (-0400) Subject: LP 1479110: Stamping Upgrade Script for Negative Balance Settings X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c8dd43e9a3efd26e0439fee7f3d97dec248e970a;p=Evergreen.git LP 1479110: Stamping Upgrade Script for Negative Balance Settings 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 07aa790274..ec4282523b 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 ('0931', :eg_version); -- berick/kmlussier +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0932', :eg_version); -- kmlussier/dyrcona CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0932.data.update_negative_balance_OUS_descriptions.sql b/Open-ILS/src/sql/Pg/upgrade/0932.data.update_negative_balance_OUS_descriptions.sql new file mode 100644 index 0000000000..280563ba4a --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0932.data.update_negative_balance_OUS_descriptions.sql @@ -0,0 +1,26 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0932', :eg_version); + +UPDATE config.org_unit_setting_type + SET description = 'Default setting to prevent negative balances (refunds) on circulation related bills. Set to "true" to prohibit negative balances at all times or, when used in conjunction with an interval setting, to prohibit negative balances after a set period of time.' + WHERE name = 'bill.prohibit_negative_balance_default'; +UPDATE config.org_unit_setting_type + SET description = 'Prevent negative balances (refunds) on bills for overdue materials. Set to "true" to prohibit negative balances at all times or, when used in conjunction with an interval setting, to prohibit negative balances after a set period of time.' + WHERE name = 'bill.prohibit_negative_balance_on_overdues'; +UPDATE config.org_unit_setting_type + SET description = 'Prohibit negative balance on bills for lost materials. Set to "true" to prohibit negative balances at all times or, when used in conjunction with an interval setting, to prohibit negative balances after a set period of time.' + WHERE name = 'bill.prohibit_negative_balance_on_lost'; +UPDATE config.org_unit_setting_type + SET description = 'Amount of time after which no negative balances (refunds) are allowed on circulation bills. The "Prohibit negative balance on bills" setting must also be set to "true".' + WHERE name = 'bill.negative_balance_interval_default'; +UPDATE config.org_unit_setting_type + SET description = 'Amount of time after which no negative balances (refunds) are allowed on bills for overdue materials. The "Prohibit negative balance on bills for overdue materials" setting must also be set to "true".' + WHERE name = 'bill.negative_balance_interval_on_overdues'; +UPDATE config.org_unit_setting_type + SET description = 'Amount of time after which no negative balances (refunds) are allowed on bills for lost/long overdue materials. The "Prohibit negative balance on bills for lost materials" setting must also be set to "true".' + WHERE name = 'bill.negative_balance_interval_on_lost'; + +COMMIT; + + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.update_negative_balance_OUS_descriptions.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.update_negative_balance_OUS_descriptions.sql deleted file mode 100644 index acfa2d002c..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.update_negative_balance_OUS_descriptions.sql +++ /dev/null @@ -1,26 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -UPDATE config.org_unit_setting_type - SET description = 'Default setting to prevent negative balances (refunds) on circulation related bills. Set to "true" to prohibit negative balances at all times or, when used in conjunction with an interval setting, to prohibit negative balances after a set period of time.' - WHERE name = 'bill.prohibit_negative_balance_default'; -UPDATE config.org_unit_setting_type - SET description = 'Prevent negative balances (refunds) on bills for overdue materials. Set to "true" to prohibit negative balances at all times or, when used in conjunction with an interval setting, to prohibit negative balances after a set period of time.' - WHERE name = 'bill.prohibit_negative_balance_on_overdues'; -UPDATE config.org_unit_setting_type - SET description = 'Prohibit negative balance on bills for lost materials. Set to "true" to prohibit negative balances at all times or, when used in conjunction with an interval setting, to prohibit negative balances after a set period of time.' - WHERE name = 'bill.prohibit_negative_balance_on_lost'; -UPDATE config.org_unit_setting_type - SET description = 'Amount of time after which no negative balances (refunds) are allowed on circulation bills. The "Prohibit negative balance on bills" setting must also be set to "true".' - WHERE name = 'bill.negative_balance_interval_default'; -UPDATE config.org_unit_setting_type - SET description = 'Amount of time after which no negative balances (refunds) are allowed on bills for overdue materials. The "Prohibit negative balance on bills for overdue materials" setting must also be set to "true".' - WHERE name = 'bill.negative_balance_interval_on_overdues'; -UPDATE config.org_unit_setting_type - SET description = 'Amount of time after which no negative balances (refunds) are allowed on bills for lost/long overdue materials. The "Prohibit negative balance on bills for lost materials" setting must also be set to "true".' - WHERE name = 'bill.negative_balance_interval_on_lost'; - -COMMIT; - -