Skip to content

Add discount_applied_at column to subscriptions#8826

Merged
pieterbeulque merged 1 commit intomainfrom
claude/add-discount-applied-at-migration
Jan 9, 2026
Merged

Add discount_applied_at column to subscriptions#8826
pieterbeulque merged 1 commit intomainfrom
claude/add-discount-applied-at-migration

Conversation

@pieterbeulque
Copy link
Contributor

Add a new column to track when a discount was first applied to a billing cycle. This will be used to properly calculate discount expiration for repeating and once-off discounts.

Includes data backfill migration that sets discount_applied_at based on the first order that used the discount.

Cherry-picked migration from #8780

Add a new column to track when a discount was first applied to a billing
cycle. This will be used to properly calculate discount expiration for
repeating and once-off discounts.

Includes data backfill migration that sets discount_applied_at based on
the first order that used the discount.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Review Updated (UTC)
polar Ignored Ignored Jan 8, 2026 3:46pm
polar-sandbox Ignored Ignored Jan 8, 2026 3:46pm

@pieterbeulque pieterbeulque merged commit 5259a02 into main Jan 9, 2026
16 checks passed
@pieterbeulque pieterbeulque deleted the claude/add-discount-applied-at-migration branch January 9, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant