killbill-uncached

Modify migration script for HA to remove NON NULL constraints

7/3/2016 12:10:34 AM

Details

diff --git a/invoice/src/main/resources/org/killbill/billing/invoice/migration/V20163502123517__invoice_ha_459.sql b/invoice/src/main/resources/org/killbill/billing/invoice/migration/V20163502123517__invoice_ha_459.sql
index 6f211ec..b882364 100644
--- a/invoice/src/main/resources/org/killbill/billing/invoice/migration/V20163502123517__invoice_ha_459.sql
+++ b/invoice/src/main/resources/org/killbill/billing/invoice/migration/V20163502123517__invoice_ha_459.sql
@@ -16,4 +16,7 @@ CREATE INDEX invoice_parent_children_tenant_account_record_id ON invoice_parent_
 
 
 alter table invoice_items add column child_account_id varchar(36) after account_id;
+alter table invoice_items modify start_date date;
+
 alter table invoices add column  parent_invoice bool NOT NULL DEFAULT FALSE after migrated;
+alter table invoices modify target_date date;