From: miker Date: Fri, 4 Jun 2010 14:45:48 +0000 (+0000) Subject: forward port syntax corrections for 1.6.0.4 DB upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0b7498fcbe714c14decf853744f403d8137e34d6;p=working%2FEvergreen.git forward port syntax corrections for 1.6.0.4 DB upgrade script git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@16592 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 5b2a49cc96..b3dff0b276 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 @@ -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