0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/data/schema
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
..
clients Switched to mysql2 library 2022-03-03 09:59:37 +01:00
default-settings 💡 Updated fixtures to make it easier to get started (#14299) 2022-03-10 17:41:46 +00:00
fixtures Updated newsletter fixtures to remove nullable sender name (#14479) 2022-04-14 23:45:59 +05:30
commands.js Fixed migration util dropping foreign keys before columns 2022-04-04 13:03:38 +01:00
index.js Moved checks into frontend data service 2022-04-05 15:23:00 +01:00
schema.js Added offer_id column to members_stripe_customers_subscriptions (#14487) 2022-04-15 13:47:15 +02:00
validator.js Switch to @trghost/validator, remove validator 2021-06-16 08:11:22 +01:00