create index only if not exists
authorChris Sharp <csharp@georgialibraries.org>
Sat, 20 Oct 2018 17:03:28 +0000 (13:03 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 16 Nov 2018 01:18:40 +0000 (20:18 -0500)
Open-ILS/src/sql/Pg/version-upgrade/3.1.5-3.2.0-upgrade-db.sql

index bc276b0..6ca82fb 100644 (file)
@@ -4842,7 +4842,7 @@ transits accross all transit types.
 */
 
 -- Create an index for speedy check constraint lookups.
-CREATE INDEX active_transit_for_copy 
+CREATE INDEX IF NOT EXISTS active_transit_for_copy 
     ON action.transit_copy (target_copy)
     WHERE dest_recv_time IS NULL AND cancel_time IS NULL;