Skip to content

Commit 28c393c

Browse files
authored
feat: add current_period_end and current_period_start to subscription items schema (#173)
1 parent 55eb9ed commit 28c393c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE "stripe"."subscription_items"
2+
ADD COLUMN IF NOT EXISTS "current_period_end" integer,
3+
ADD COLUMN IF NOT EXISTS "current_period_start" integer;

packages/sync-engine/src/schemas/subscription_item.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ export const subscriptionItemSchema: EntitySchema = {
1212
'price',
1313
'subscription',
1414
'tax_rates',
15+
'current_period_end',
16+
'current_period_start',
1517
],
1618
} as const

0 commit comments

Comments
 (0)