]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/1000.data.add-spanish-to-i18n-locale.sql
LP#1638299: Stamping upgrade scripts for authority infrastructure work
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 1000.data.add-spanish-to-i18n-locale.sql
1 -- Add Spanish to config.i18n_locale table
2
3 BEGIN;
4
5 SELECT evergreen.upgrade_deps_block_check('1000', :eg_version);
6
7 INSERT INTO config.i18n_locale (code,marc_code,name,description)
8     SELECT 'es-ES', 'spa', oils_i18n_gettext('es-ES', 'Spanish', 'i18n_l', 'name'),
9         oils_i18n_gettext('es-ES', 'Spanish', 'i18n_l', 'description')
10     WHERE NOT EXISTS (SELECT 1 FROM config.i18n_locale WHERE code = 'es-ES');
11
12 COMMIT;