From: Jason Etheridge Date: Thu, 8 Sep 2011 05:26:34 +0000 (-0400) Subject: lp#794153 stamping upgrade script for phone pw X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=47fdb4c815166fa3630ed22bddd6a1dfa1cc8b70;p=evergreen%2Fequinox.git lp#794153 stamping upgrade script for phone pw 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 94f82dd3f7..bc00d9b34a 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -86,7 +86,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 ('0617', :eg_version); -- miker/jeff-davis +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0618', :eg_version); -- phasefx/tsbere CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0618.data.org-setting-phone_pw.sql b/Open-ILS/src/sql/Pg/upgrade/0618.data.org-setting-phone_pw.sql new file mode 100644 index 0000000000..6351aa8446 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0618.data.org-setting-phone_pw.sql @@ -0,0 +1,9 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0618', :eg_version); + +UPDATE config.org_unit_setting_type SET description = E'The Regular Expression for validation on the day_phone field in patron registration. Note: The first capture group will be used for the "last 4 digits of phone number" feature, if enabled. Ex: "[2-9]\\d{2}-\\d{3}-(\\d{4})( x\\d+)?" will ignore the extension on a NANP number.' WHERE name = 'ui.patron.edit.au.day_phone.regex'; + +UPDATE config.org_unit_setting_type SET description = 'The Regular Expression for validation on phone fields in patron registration. Applies to all phone fields without their own setting. NOTE: See description of the day_phone regex for important information about capture groups with it.' WHERE name = 'ui.patron.edit.phone.regex'; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.phone_pw.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.phone_pw.sql deleted file mode 100644 index b39ff970b2..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.phone_pw.sql +++ /dev/null @@ -1,3 +0,0 @@ -UPDATE config.org_unit_setting_type SET description = E'The Regular Expression for validation on the day_phone field in patron registration. Note: The first capture group will be used for the "last 4 digits of phone number" feature, if enabled. Ex: "[2-9]\\d{2}-\\d{3}-(\\d{4})( x\\d+)?" will ignore the extension on a NANP number.' WHERE name = 'ui.patron.edit.au.day_phone.regex'; - -UPDATE config.org_unit_setting_type SET description = 'The Regular Expression for validation on phone fields in patron registration. Applies to all phone fields without their own setting. NOTE: See description of the day_phone regex for important information about capture groups with it.' WHERE name = 'ui.patron.edit.phone.regex';