From: Bill Erickson Date: Mon, 24 Sep 2018 19:03:18 +0000 (-0400) Subject: JBAS-1832 3.2 billing columns for aged_billing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ffb9a09b643d4a75ebf61622efcbf0a90215e910;p=working%2FEvergreen.git JBAS-1832 3.2 billing columns for aged_billing Signed-off-by: Bill Erickson --- diff --git a/KCLS/sql/schema/deploy/2.12-3.2-db-upgrade-data.sql b/KCLS/sql/schema/deploy/2.12-3.2-db-upgrade-data.sql index 0bac8e1df7..43bc36ea56 100644 --- a/KCLS/sql/schema/deploy/2.12-3.2-db-upgrade-data.sql +++ b/KCLS/sql/schema/deploy/2.12-3.2-db-upgrade-data.sql @@ -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)