Modify XXXX.schema.money.void_payment.sql.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 22 Jan 2013 19:32:00 +0000 (14:32 -0500)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 22 Jan 2013 19:38:36 +0000 (14:38 -0500)
Remove a couple of unnecessary DROP VIEW statements because they're dropped
automagically when the voided column is dropped from money.billing.

We also don't attempt to recreate the dropped views above because they are
meaningless now that the voided column is gone.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.money.void_payment.sql

index 610625e..3c13e55 100644 (file)
@@ -109,9 +109,8 @@ CREATE OR REPLACE VIEW money.billable_xact_summary AS
                        ) credit ON xact.id = credit.xact
          ORDER BY debit.billing_ts, credit.payment_ts;
 
--- Drop billing summary views that include voided.
-DROP VIEW money.transaction_billing_with_void_summary;
-DROP VIEW money.transaction_payment_with_void_summary;
+-- Drop billable_xact_with_void_summary since billable_xact_summary
+-- now takes its place.
 DROP VIEW money.billable_xact_with_void_summary;
 
 -- Alter trigger functions as necessary.