Allow users to stop a previously scheduled cancelation of their Zed Pro plan (#15562)

Release Notes:

- N/A

Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
Max Brunsfeld
2024-07-31 16:36:46 -04:00
committed by GitHub
co-authored by Marshall
parent 3f1c091b87
commit 1b2d4ee132
5 changed files with 62 additions and 6 deletions
@@ -432,7 +432,8 @@ CREATE TABLE IF NOT EXISTS billing_subscriptions (
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
billing_customer_id INTEGER NOT NULL REFERENCES billing_customers(id),
stripe_subscription_id TEXT NOT NULL,
stripe_subscription_status TEXT NOT NULL
stripe_subscription_status TEXT NOT NULL,
stripe_cancel_at TIMESTAMP
);
CREATE INDEX "ix_billing_subscriptions_on_billing_customer_id" ON billing_subscriptions (billing_customer_id);