Stamping upgrade script for localized notifications
authorJane Sandberg <sandbergja@gmail.com>
Mon, 28 Mar 2022 12:43:25 +0000 (05:43 -0700)
committerJane Sandberg <sandbergja@gmail.com>
Mon, 28 Mar 2022 12:43:25 +0000 (05:43 -0700)
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1324.schema.preferred_locale_and_alternate_at_templates.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/xxxx.schema.preferred_locale_and_alternate_at_templates.sql [deleted file]

index e36d5f3..7dce65d 100644 (file)
@@ -92,7 +92,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 ('1323', :eg_version); -- lucien/remingtron/sandbergja/gmcharlt/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1324', :eg_version); -- rhamby/miker/sandbergja
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1324.schema.preferred_locale_and_alternate_at_templates.sql b/Open-ILS/src/sql/Pg/upgrade/1324.schema.preferred_locale_and_alternate_at_templates.sql
new file mode 100644 (file)
index 0000000..116b558
--- /dev/null
@@ -0,0 +1,20 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1324', :eg_version);
+
+CREATE TABLE action_trigger.alternate_template (
+      id               SERIAL,
+      event_def        INTEGER REFERENCES action_trigger.event_definition(id) INITIALLY DEFERRED,
+      template         TEXT,
+      active           BOOLEAN DEFAULT TRUE,
+      message_title    TEXT,
+      message_template TEXT,
+      locale           TEXT REFERENCES config.i18n_locale(code) INITIALLY DEFERRED,
+      UNIQUE (event_def,locale)
+);
+
+ALTER TABLE actor.usr ADD COLUMN locale TEXT REFERENCES config.i18n_locale(code) INITIALLY DEFERRED;
+
+ALTER TABLE action_trigger.event_output ADD COLUMN locale TEXT;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.preferred_locale_and_alternate_at_templates.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.preferred_locale_and_alternate_at_templates.sql
deleted file mode 100644 (file)
index d70fd2f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
-
-CREATE TABLE action_trigger.alternate_template (
-      id               SERIAL,
-      event_def        INTEGER REFERENCES action_trigger.event_definition(id) INITIALLY DEFERRED,
-      template         TEXT,
-      active           BOOLEAN DEFAULT TRUE,
-      message_title    TEXT,
-      message_template TEXT,
-      locale           TEXT REFERENCES config.i18n_locale(code) INITIALLY DEFERRED,
-      UNIQUE (event_def,locale)
-);
-
-ALTER TABLE actor.usr ADD COLUMN locale TEXT REFERENCES config.i18n_locale(code) INITIALLY DEFERRED;
-
-ALTER TABLE action_trigger.event_output ADD COLUMN locale TEXT;
-
-COMMIT;