From: Ben Shum Date: Fri, 25 Apr 2014 00:58:17 +0000 (-0400) Subject: Only create extension intarray if it does not already exist X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d9604850f60f10ee619e0e0bf1b5f08faf1f08a1;p=evergreen%2Fpines.git Only create extension intarray if it does not already exist Simple change to skip over adding intarray if it already exists in a database for some reason. Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/sql/Pg/upgrade/0864.MVF_CRA-upgrade.sql b/Open-ILS/src/sql/Pg/upgrade/0864.MVF_CRA-upgrade.sql index 4307f90987..a82802b859 100644 --- a/Open-ILS/src/sql/Pg/upgrade/0864.MVF_CRA-upgrade.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0864.MVF_CRA-upgrade.sql @@ -2,7 +2,7 @@ BEGIN; SELECT evergreen.upgrade_deps_block_check('0864', :eg_version); -CREATE EXTENSION intarray; +CREATE EXTENSION IF NOT EXISTS intarray; -- while we have this opportunity, and before we start collecting -- CCVM IDs (below) carve out a nice space for stock ccvm values