LP#1817332: (follow-up) tweak description user/gmcharlt/lp1817332_lib_timezone_doc
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 23 May 2019 15:17:44 +0000 (11:17 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 23 May 2019 15:17:44 +0000 (11:17 -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>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.update_timezone_OUS_description.sql

index 1e3bbd4..062c32e 100644 (file)
@@ -17486,7 +17486,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;