Stamping upgrade script for Spanish locale seed data
authorDan Wells <dbw2@calvin.edu>
Mon, 29 Aug 2016 21:38:10 +0000 (17:38 -0400)
committerDan Wells <dbw2@calvin.edu>
Mon, 29 Aug 2016 21:38:10 +0000 (17:38 -0400)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1000.data.add-spanish-to-i18n-locale.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-spanish-to-i18n-locale.sql [deleted file]

index 70af6ff..5db1ee3 100644 (file)
@@ -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/1000.data.add-spanish-to-i18n-locale.sql b/Open-ILS/src/sql/Pg/upgrade/1000.data.add-spanish-to-i18n-locale.sql
new file mode 100644 (file)
index 0000000..b221170
--- /dev/null
@@ -0,0 +1,11 @@
+-- Add Spanish to config.i18n_locale table
+
+BEGIN;
+
+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'),
+        oils_i18n_gettext('es-ES', 'Spanish', 'i18n_l', 'description'));
+
+COMMIT;
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
deleted file mode 100644 (file)
index 1263431..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
--- 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;