JBAS-1832 3.2 billing columns for aged_billing
authorBill Erickson <berickxx@gmail.com>
Mon, 24 Sep 2018 19:03:18 +0000 (15:03 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/2.12-3.2-db-upgrade-data.sql

index 0bac8e1..43bc36e 100644 (file)
@@ -63,6 +63,13 @@ ALTER TABLE money.billing
        ADD COLUMN period_start    TIMESTAMP WITH TIME ZONE,
        ADD COLUMN period_end  TIMESTAMP WITH TIME ZONE;
 
+-- TODO: back-fill aged billing data, indexes, and null constraints
+-- for consistency after deciding whether we want to delete any of them.
+ALTER TABLE money.aged_billing
+       ADD COLUMN create_date TIMESTAMP WITH TIME ZONE,
+       ADD COLUMN period_start    TIMESTAMP WITH TIME ZONE,
+       ADD COLUMN period_end  TIMESTAMP WITH TIME ZONE;
+
 --Disable materialized update trigger
 --It takes forever, and doesn't matter yet for what we are doing, as the
 --view definition is unchanged (still using billing_ts)