LP#1663663: Stamping upgrade script for overlay merge profile fix
authorKathy Lussier <klussier@masslnc.org>
Tue, 14 Feb 2017 05:44:06 +0000 (00:44 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 14 Feb 2017 05:44:06 +0000 (00:44 -0500)
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1012.data.fix_full_overlay_vmp.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.fix_full_overlay_vmp.sql [deleted file]

index 10eee0c..70f7209 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 ('1011', :eg_version); -- Dyrcona/kmlussier
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1012', :eg_version); -- gmcharlt/kmlussier
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1012.data.fix_full_overlay_vmp.sql b/Open-ILS/src/sql/Pg/upgrade/1012.data.fix_full_overlay_vmp.sql
new file mode 100644 (file)
index 0000000..65fca46
--- /dev/null
@@ -0,0 +1,14 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1012', :eg_version);
+UPDATE vandelay.merge_profile
+SET preserve_spec = '901c',
+    replace_spec = NULL
+WHERE id = 2
+AND   name = oils_i18n_gettext(2, 'Full Overlay', 'vmp', 'name')
+AND   preserve_spec IS NULL
+AND   add_spec IS NULL
+AND   strip_spec IS NULL
+AND   replace_spec = '901c';
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.fix_full_overlay_vmp.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.fix_full_overlay_vmp.sql
deleted file mode 100644 (file)
index cd3537b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-UPDATE vandelay.merge_profile
-SET preserve_spec = '901c',
-    replace_spec = NULL
-WHERE id = 2
-AND   name = oils_i18n_gettext(2, 'Full Overlay', 'vmp', 'name')
-AND   preserve_spec IS NULL
-AND   add_spec IS NULL
-AND   strip_spec IS NULL
-AND   replace_spec = '901c';
-
-COMMIT;