JBAS-1554 Aged circ SQL update drop repair
authorBill Erickson <berickxx@gmail.com>
Fri, 2 Jun 2017 14:36:59 +0000 (10:36 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
DROP some functions before a view they depend on is replaced.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/aged-circs-api.sql

index 2e869ab..dbe7b17 100644 (file)
@@ -7,7 +7,10 @@ BEGIN;
 \set eg_version '''2.7.8'''
 SELECT evergreen.upgrade_deps_block_check('0998', :eg_version);
 
+DROP FUNCTION action.summarize_all_circ_chain (INTEGER);
+DROP FUNCTION action.all_circ_chain (INTEGER);
 DROP VIEW IF EXISTS action.all_circulation;
+
 CREATE VIEW action.all_circulation AS
      SELECT aged_circulation.id, aged_circulation.usr_post_code,
         aged_circulation.usr_home_ou, aged_circulation.usr_profile,