[open-ils-commits] [GIT] Evergreen ILS branch master updated. 9b47089fd67daa7041161a9c71a02320797055d6

Evergreen Git git at git.evergreen-ils.org
Mon Aug 29 17:40:44 EDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  9b47089fd67daa7041161a9c71a02320797055d6 (commit)
       via  dddb70dff3d508b673d12b169fb41ca0473c6f9e (commit)
      from  6bc0bc2fb3f405ad4609a9be2992374c57bf0328 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9b47089fd67daa7041161a9c71a02320797055d6
Author: Dan Wells <dbw2 at calvin.edu>
Date:   Mon Aug 29 17:38:10 2016 -0400

    Stamping upgrade script for Spanish locale seed data
    
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 70af6ff..5db1ee3 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -91,7 +91,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 ('0999', :eg_version); -- gmc/berick
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1000', :eg_version); -- bshum/dbwells
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-spanish-to-i18n-locale.sql b/Open-ILS/src/sql/Pg/upgrade/1000.data.add-spanish-to-i18n-locale.sql
similarity index 81%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-spanish-to-i18n-locale.sql
rename to Open-ILS/src/sql/Pg/upgrade/1000.data.add-spanish-to-i18n-locale.sql
index 1263431..b221170 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-spanish-to-i18n-locale.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/1000.data.add-spanish-to-i18n-locale.sql
@@ -2,7 +2,7 @@
 
 BEGIN;
 
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('1000', :eg_version);
 
 INSERT INTO config.i18n_locale (code,marc_code,name,description)
     VALUES ('es-ES', 'spa', oils_i18n_gettext('es-ES', 'Spanish', 'i18n_l', 'name'),

commit dddb70dff3d508b673d12b169fb41ca0473c6f9e
Author: Ben Shum <ben at evergreener.net>
Date:   Mon Aug 29 15:37:48 2016 -0400

    LP#1618183: Add Spanish to config.i18n_locale
    
    Add Spanish to this table so that it is an option for supported translations.
    
    Signed-off-by: Ben Shum <ben at evergreener.net>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
index 2c45a7b..e029263 100644
--- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql
+++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
@@ -360,6 +360,9 @@ INSERT INTO config.i18n_locale (code,marc_code,name,description)
 INSERT INTO config.i18n_locale (code,marc_code,name,description)
     VALUES ('hy-AM', 'arm', oils_i18n_gettext('hy-AM', 'Armenian', 'i18n_l', 'name'),
 	oils_i18n_gettext('hy-AM', 'Armenian', 'i18n_l', 'description'));
+INSERT INTO config.i18n_locale (code,marc_code,name,description)
+    VALUES ('es-ES', 'spa', oils_i18n_gettext('es-ES', 'Spanish', 'i18n_l', 'name'),
+	oils_i18n_gettext('es-ES', 'Spanish', 'i18n_l', 'description'));
 --INSERT INTO config.i18n_locale (code,marc_code,name,description)
 --    VALUES ('es-US', 'spa', oils_i18n_gettext('es-US', 'Spanish (US)', 'i18n_l', 'name'),
 --	oils_i18n_gettext('es-US', 'American Spanish', 'i18n_l', 'description'));
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-spanish-to-i18n-locale.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-spanish-to-i18n-locale.sql
new file mode 100644
index 0000000..1263431
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-spanish-to-i18n-locale.sql
@@ -0,0 +1,11 @@
+-- Add Spanish to config.i18n_locale table
+
+BEGIN;
+
+--SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO config.i18n_locale (code,marc_code,name,description)
+    VALUES ('es-ES', 'spa', oils_i18n_gettext('es-ES', 'Spanish', 'i18n_l', 'name'),
+        oils_i18n_gettext('es-ES', 'Spanish', 'i18n_l', 'description'));
+
+COMMIT;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/sql/Pg/002.schema.config.sql          |    2 +-
 Open-ILS/src/sql/Pg/950.data.seed-values.sql       |    3 +++
 .../1000.data.add-spanish-to-i18n-locale.sql       |   11 +++++++++++
 3 files changed, 15 insertions(+), 1 deletions(-)
 create mode 100644 Open-ILS/src/sql/Pg/upgrade/1000.data.add-spanish-to-i18n-locale.sql


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list