[open-ils-commits] r16332 - tags/rel_1_6_0_4/Open-ILS/src/sql/Pg (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Apr 28 10:49:38 EDT 2010


Author: dbs
Date: 2010-04-28 10:49:35 -0400 (Wed, 28 Apr 2010)
New Revision: 16332

Modified:
   tags/rel_1_6_0_4/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql
Log:
Merge r16331 from rel_1_6_0: Fix another DML bug in the 1.6.0.3-1.6.0.4 upgrade script.

Thanks to Anoop Atre for catching this.


Modified: tags/rel_1_6_0_4/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql
===================================================================
--- tags/rel_1_6_0_4/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql	2010-04-28 14:48:05 UTC (rev 16331)
+++ tags/rel_1_6_0_4/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql	2010-04-28 14:49:35 UTC (rev 16332)
@@ -152,8 +152,11 @@
 $$ 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



More information about the open-ils-commits mailing list