Adding logic to drop the view if exists.
authorChris Sharp <csharp@georgialibraries.org>
Thu, 8 Sep 2016 13:58:27 +0000 (09:58 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 12 Sep 2016 14:51:49 +0000 (10:51 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq_po_and_invoice_views.sql

index 2609cfa..8e03e60 100644 (file)
@@ -1,6 +1,8 @@
 BEGIN;
 
-CREATE OR REPLACE VIEW reporter.acq_purchase_order_view AS
+DROP VIEW IF EXISTS reporter.acq_purchase_order_view;
+
+CREATE VIEW reporter.acq_purchase_order_view AS
  SELECT  po.id AS po_id,
         po.name AS po_name,
         po.order_date AS po_order_date,