refactor: Database migration for nullable stripe_customer_id (#205) #207
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relates to #205
Milestone 1: Database migration + type definitions
Files
backend/src/features/subscriptions/migrations/002_nullable_stripe_customer_id.sql(NEW)backend/src/features/subscriptions/domain/subscriptions.types.tsfrontend/src/features/subscription/types/subscription.types.tsChanges
New migration
002_nullable_stripe_customer_id.sql:Backend type (
subscriptions.types.ts):Subscriptioninterface: changestripeCustomerId: stringtostripeCustomerId: string | nullSubscriptionResponsetype: changestripeCustomerId: stringtostripeCustomerId: string | nullUpdateSubscriptionDatatype: changestripeCustomerId?: stringtostripeCustomerId?: string | nullFrontend type (
subscription.types.ts):stripeCustomerId: stringtostripeCustomerId: string | nullAcceptance Criteria