collab: Add has_overdue_invoices
to billing_customers
(#24239)
This PR adds a new `has_overdue_invoices` field to the `billing_customers` table. This will be used to statefully track whether a customer has overdue invoices, and also to reset it when the invoices are paid. We will set this field to `true` when a subscription is canceled with the reason `payment_failed`. Release Notes: - N/A
This commit is contained in:
parent
b13498a5dd
commit
aa3da35e8e
5 changed files with 27 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
alter table billing_customers
|
||||
add column has_overdue_invoices bool not null default false;
|
Loading…
Add table
Add a link
Reference in a new issue