forward port syntax corrections for 1.6.0.4 DB upgrade script
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Jun 2010 14:45:48 +0000 (14:45 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Jun 2010 14:45:48 +0000 (14:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@16592 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 5b2a49c..b3dff0b 100644 (file)
@@ -94,9 +94,9 @@ SELECT        r.id,
 -- If you're using Slony, delete instead of truncate!
 
 --DELETE FROM materialized.simple_record;
-TRUNCATE TABLE materialized.simple_record;
+TRUNCATE TABLE reporter.materialized_simple_record;
 
-INSERT INTO materialized.simple_record
+INSERT INTO reporter.materialized_simple_record
     SELECT * FROM reporter.old_super_simple_record;
 
 -- Replace the billable transaction summary view with one that is more cautious about NULL values
@@ -153,7 +153,7 @@ $$ LANGUAGE PLPGSQL;
 
 -- And rebuild the materialized view that was built on money.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