Forward port 2.9.3 to 2.9.4 db upgrade script.
authorJason Stephenson <jstephenson@mvlcstaff.org>
Thu, 28 Apr 2016 23:32:47 +0000 (19:32 -0400)
committerJason Stephenson <jstephenson@mvlcstaff.org>
Thu, 28 Apr 2016 23:34:53 +0000 (19:34 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlcstaff.org>
Open-ILS/src/sql/Pg/version-upgrade/2.9.3-2.9.4-upgrade-db.sql [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.9.3-2.9.4-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.9.3-2.9.4-upgrade-db.sql
new file mode 100644 (file)
index 0000000..102e0c0
--- /dev/null
@@ -0,0 +1,11 @@
+--Upgrade Script for 2.9.3 to 2.9.4
+\set eg_version '''2.9.4'''
+BEGIN;
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('2.9.4', :eg_version);
+
+SELECT evergreen.upgrade_deps_block_check('0977', :eg_version); -- Callender/Dyrcona/gmcharlt
+
+ALTER TABLE biblio.monograph_part DROP CONSTRAINT "record_label_unique";
+CREATE UNIQUE INDEX record_label_unique_idx ON biblio.monograph_part (record, label) WHERE deleted = FALSE;
+
+COMMIT;