0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/data/migrations/versions/4.44
Simon Backx 9b23424e48
Added offer_id column to members_stripe_customers_subscriptions (#14487)
refs https://github.com/TryGhost/Team/issues/1519

Migration that adds the (nullable) offer_id column to members_stripe_customers_subscriptions.
- New reliable way to know which offer is active for a given subscription (currently we compare the tier and cadence in offer redemptions)
- We'll create a separate migration to backfill all the offer_ids, but only after we updated the code to also store them correctly for new or updated subscriptions (https://github.com/TryGhost/Team/issues/1520)
- Allows us to backfill the MRR of all subscriptions to account for forever offers
2022-04-15 13:47:15 +02:00
..
2022-04-06-15-22-populate-type-column-for-paid-subscription-events.js
2022-04-08-11-54-add-cancelled-events.js
2022-04-11-08-24-add-newsletter-permissions.js Fixed the newsletters api permissions (#14458) 2022-04-13 12:02:06 +02:00
2022-04-11-10-54-add-mrr-to-subscriptions.js Added mrr column to subscriptions (#14448) 2022-04-12 11:02:18 +02:00
2022-04-12-07-33-fill-mrr.js Added migration that fills the mrr column in members_stripe_customers_subscriptions (#14465) 2022-04-13 14:07:34 +02:00
2022-04-13-12-00-remove-newsletter-sender-name-not-null-constraint.js Updated newsletter sender name column as nullable (#14476) 2022-04-14 17:42:20 +05:30
2022-04-15-07-53-add-offer-id-to-subscriptions.js Added offer_id column to members_stripe_customers_subscriptions (#14487) 2022-04-15 13:47:15 +02:00