Fix another DML bug in the 1.6.0.3-1.6.0.4 upgrade script.
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 28 Apr 2010 14:48:05 +0000 (14:48 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 28 Apr 2010 14:48:05 +0000 (14:48 +0000)
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

Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql

index 7e4e9d4..8acb9ec 100644 (file)
@@ -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