From: dbs Date: Wed, 28 Apr 2010 14:48:05 +0000 (+0000) Subject: Fix another DML bug in the 1.6.0.3-1.6.0.4 upgrade script. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1a8ed4666a4783a07df3d417dd367f637325d5a8;p=Evergreen.git Fix another DML bug in the 1.6.0.3-1.6.0.4 upgrade script. Thanks to Anoop Atre for catching this. git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@16331 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql b/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql index 7e4e9d46e3..8acb9ec242 100644 --- a/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql +++ b/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql @@ -152,8 +152,11 @@ END; $$ LANGUAGE PLPGSQL; -- And rebuild the materialized view that was built on money.billable_xact_summary +-- If you're using Slony, delete instead of truncate! + +-- DELETE FROM money.materialized_billable_xact_summary; TRUNCATE TABLE money.materialized_billable_xact_summary; -INSERT INTO TABLE money.materialized_billable_xact_summary +INSERT INTO money.materialized_billable_xact_summary SELECT * FROM money.billable_xact_summary; -- Updated in-db circ and functions which return a matchpoint whenever possible, for override