From: Dan Wells Date: Tue, 13 Nov 2012 20:45:07 +0000 (-0500) Subject: Stamping upgrade script for lost xact_finish opt. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=eabc8c689151b27f7d2d421775f19dbaa82dbe42;p=evergreen%2Fpines.git Stamping upgrade script for lost xact_finish opt. Signed-off-by: Dan Wells --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index e722361130..7b5b2c38dd 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -87,7 +87,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 ('0743', :eg_version); -- dbs/tsbere +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0744', :eg_version); -- Dyrcona/dbwells CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0744.data.coust_lost_xact_finish_on_zero.sql b/Open-ILS/src/sql/Pg/upgrade/0744.data.coust_lost_xact_finish_on_zero.sql new file mode 100644 index 0000000000..f43cc75c51 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0744.data.coust_lost_xact_finish_on_zero.sql @@ -0,0 +1,25 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0744', :eg_version); + +INSERT INTO config.org_unit_setting_type + (name, grp, label, description, datatype) + VALUES ( + 'circ.lost.xact_open_on_zero', + 'finance', + oils_i18n_gettext( + 'circ.lost.xact_open_on_zero', + 'Leave transaction open when lost balance equals zero', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.lost.xact_open_on_zero', + 'Leave transaction open when lost balance equals zero. This leaves the lost copy on the patron record when it is paid', + 'coust', + 'description' + ), + 'bool' + ); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.coust_lost_xact_finish_on_zero.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.coust_lost_xact_finish_on_zero.sql deleted file mode 100644 index 5397ef151e..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.coust_lost_xact_finish_on_zero.sql +++ /dev/null @@ -1,25 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT INTO config.org_unit_setting_type - (name, grp, label, description, datatype) - VALUES ( - 'circ.lost.xact_open_on_zero', - 'finance', - oils_i18n_gettext( - 'circ.lost.xact_open_on_zero', - 'Leave transaction open when lost balance equals zero', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'circ.lost.xact_open_on_zero', - 'Leave transaction open when lost balance equals zero. This leaves the lost copy on the patron record when it is paid', - 'coust', - 'description' - ), - 'bool' - ); - -COMMIT;