Skip to content

Commit

Permalink
fix(billing): Fixed subscription timestamp not being migrated
Browse files Browse the repository at this point in the history
I forgot to backfill the subscription timestamp in the ulid migration

Resolves #1758
  • Loading branch information
elliotcourant committed May 24, 2024
1 parent 1e09b1e commit bc5da30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/migrations/schema/2024041100_NewID.tx.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,14 @@ CREATE TABLE "accounts" (
CONSTRAINT "uq_accounts_stripe_subscription_id" UNIQUE ("stripe_subscription_id")
);

INSERT INTO "accounts" ("account_id", "timezone", "locale", "stripe_customer_id", "stripe_subscription_id", "stripe_webhook_latest_timestamp", "subscription_status", "trial_ends_at", "created_at")
INSERT INTO "accounts" ("account_id", "timezone", "locale", "stripe_customer_id", "stripe_subscription_id", "subscription_active_until", "stripe_webhook_latest_timestamp", "subscription_status", "trial_ends_at", "created_at")
SELECT
"a"."account_id_new",
"a"."timezone",
"a"."locale",
"a"."stripe_customer_id",
"a"."stripe_subscription_id",
"a"."subscription_active_until",
"a"."stripe_webhook_latest_timestamp",
"a"."subscription_status",
"a"."trial_ends_at",
Expand Down

0 comments on commit bc5da30

Please sign in to comment.