From: Jason Etheridge Date: Thu, 31 Aug 2017 03:48:24 +0000 (-0400) Subject: lp1709521 stamping schema upgrade X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5fdb9b0b78f22accebd9760fff5771582bb4179d;p=evergreen%2Fequinox.git lp1709521 stamping schema upgrade Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 9bf7ff5dd8..5962835ffd 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 ('1060', :eg_version); -- Bmagic/csharp/phasefx +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1061', :eg_version); -- berick/kmlussier/cesardv/phasefx CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1061.data.recent-patrons.sql b/Open-ILS/src/sql/Pg/upgrade/1061.data.recent-patrons.sql new file mode 100644 index 0000000000..97c98f868d --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1061.data.recent-patrons.sql @@ -0,0 +1,26 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1061', :eg_version); + +INSERT INTO config.org_unit_setting_type + (name, label, description, grp, datatype) +VALUES ( + 'ui.staff.max_recent_patrons', + oils_i18n_gettext( + 'ui.staff.max_recent_patrons', + 'Number of Retrievable Recent Patrons', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'ui.staff.max_recent_patrons', + 'Number of most recently accessed patrons that can be re-retrieved ' || + 'in the staff client. A value of 0 or less disables the feature. Defaults to 1.', + 'coust', + 'description' + ), + 'circ', + 'integer' +); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.recent-patrons.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.recent-patrons.sql deleted file mode 100644 index 89dd857f80..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.recent-patrons.sql +++ /dev/null @@ -1,26 +0,0 @@ -BEGIN; - --- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT INTO config.org_unit_setting_type - (name, label, description, grp, datatype) -VALUES ( - 'ui.staff.max_recent_patrons', - oils_i18n_gettext( - 'ui.staff.max_recent_patrons', - 'Number of Retrievable Recent Patrons', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'ui.staff.max_recent_patrons', - 'Number of most recently accessed patrons that can be re-retrieved ' || - 'in the staff client. A value of 0 or less disables the feature. Defaults to 1.', - 'coust', - 'description' - ), - 'circ', - 'integer' -); - -COMMIT;