[open-ils-commits] [GIT] Evergreen ILS branch rel_2_9 updated. 040d0b08cf8dcf103bca6a406e45f7fafc620d15

Evergreen Git git at git.evergreen-ils.org
Wed Mar 16 15:11:40 EDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_9 has been updated
       via  040d0b08cf8dcf103bca6a406e45f7fafc620d15 (commit)
      from  dc4a2113ec622ae124bbc1870bc62ae7a391717a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 040d0b08cf8dcf103bca6a406e45f7fafc620d15
Author: Bill Erickson <berickxx at gmail.com>
Date:   Thu Feb 25 15:47:20 2016 -0500

    LP#1206936 Base SQL schema repair
    
    Avoid referencing money.materialized_billable_xact_summary before it's
    defined.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/src/sql/Pg/080.schema.money.sql b/Open-ILS/src/sql/Pg/080.schema.money.sql
index bcc52e4..c08137a 100644
--- a/Open-ILS/src/sql/Pg/080.schema.money.sql
+++ b/Open-ILS/src/sql/Pg/080.schema.money.sql
@@ -94,14 +94,6 @@ CREATE OR REPLACE VIEW money.transaction_billing_type_summary AS
 	  GROUP BY xact,billing_type
 	  ORDER BY MAX(billing_ts);
 
-CREATE OR REPLACE VIEW money.transaction_billing_summary AS
-    SELECT id as xact,
-        last_billing_type,
-        last_billing_note,
-        last_billing_ts,
-        total_owed
-      FROM money.materialized_billable_xact_summary;            
-
 
 CREATE OR REPLACE VIEW money.transaction_payment_summary AS
 	SELECT	xact,
@@ -263,6 +255,14 @@ ALTER TABLE money.materialized_billable_xact_summary ADD PRIMARY KEY (id);
 CREATE INDEX money_mat_summary_usr_idx ON money.materialized_billable_xact_summary (usr);
 CREATE INDEX money_mat_summary_xact_start_idx ON money.materialized_billable_xact_summary (xact_start);
 
+CREATE OR REPLACE VIEW money.transaction_billing_summary AS
+    SELECT id as xact,
+        last_billing_type,
+        last_billing_note,
+        last_billing_ts,
+        total_owed
+      FROM money.materialized_billable_xact_summary;
+
 /* AFTER trigger only! */
 CREATE OR REPLACE FUNCTION money.mat_summary_create () RETURNS TRIGGER AS $$
 BEGIN

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/sql/Pg/080.schema.money.sql |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list