LP#1817332: (follow-up) tweak description
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 23 May 2019 15:17:44 +0000 (11:17 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 24 May 2019 19:01:09 +0000 (15:01 -0400)
Per a suggestion from Jane Sandberg, the description now includes
an example of a time zone name with an underscore. Also, the database
update will no longer overwrite any custom description that the
Evergreen admin may have put in.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>

Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.update_timezone_OUS_description.sql

index ea97a5b..c887e9a 100644 (file)
@@ -17495,7 +17495,7 @@ INSERT into config.org_unit_setting_type
         'coust', 'label'),
     oils_i18n_gettext('lib.timezone',
         'Define the time zone in which a library physically resides. Examples: America/Toronto, ' ||
-        'America/Chicago, America/Denver, America/Vancouver, Europe/Prague. See Wikipedia for a ' ||
+        'America/Chicago, America/Los_Angeles, America/Vancouver, Europe/Prague. See Wikipedia for a ' ||
         '<a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones" target="_blank">complete list</a> ' ||
         '(Note: Only use "canonical" timezones).',
         'coust', 'description'),
index a5e46a3..60f7931 100644 (file)
@@ -5,10 +5,11 @@ BEGIN;
 UPDATE config.org_unit_setting_type
     SET description =
 'Define the time zone in which a library physically resides. Examples: America/Toronto, ' ||
-'America/Chicago, America/Denver, America/Vancouver, Europe/Prague. See Wikipedia for a ' ||
+'America/Chicago, America/Los_Angeles, America/Vancouver, Europe/Prague. See Wikipedia for a ' ||
 '<a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones" target="_blank">complete list</a> ' ||
 '(Note: Only use "canonical" timezones).'
-    WHERE name = 'lib.timezone';
+WHERE name = 'lib.timezone'
+AND description = 'Define the time zone in which a library physically resides';
 
 COMMIT;