LP#1663663: seed data upgrade script
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 10 Feb 2017 16:45:12 +0000 (11:45 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 14 Feb 2017 05:39:16 +0000 (00:39 -0500)
This patch attempts to repair the Full Overlay merge profile
in 2.11 and 2.12-masterish databases.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/upgrade/XXXX.data.fix_full_overlay_vmp.sql [new file with mode: 0644]

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
new file mode 100644 (file)
index 0000000..cd3537b
--- /dev/null
@@ -0,0 +1,14 @@
+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;