0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
ghost/core
Simon Backx 9def4e6edc
Added migration to backfill offer ids in subscriptions (#14511)
refs https://github.com/TryGhost/Team/issues/1520

- Sets the `offer_id` in the `members_stripe_customers_subscriptions` table based on the `offer_redemptions` that have the same tier and cadence
- We currently use the same subscription <-> offer linking when viewing a member
- The MySQL query is quite optimized in a single UPDATE query, but in SQLite we'll need to run (maximum) one UPDATE query for every offer (not per subscription).
- Best to merge this migration in 4.x (not in 5.0) because it is better (less error prone) to run this migration before starting to fill the offer_id field for updated migrations instead of after (https://github.com/TryGhost/Ghost/pull/14488)
- We need the SQLite migration for sites that will only migrate to MySQL at 5.0
2022-04-21 11:45:24 +02:00
..
client@d0daa084ac Updated Admin to v4.44.0 2022-04-15 16:00:39 +01:00
frontend Moved cors middleware to own file 2022-04-19 11:19:59 +01:00
server Added migration to backfill offer ids in subscriptions (#14511) 2022-04-21 11:45:24 +02:00
shared Added publishingFlow labs flag 2022-04-20 16:20:01 +01:00
app.js Fixed express app stacking 2021-12-06 21:28:53 +13:00
boot.js Added theme-service-init metric during boot 2022-03-24 09:20:52 +00:00
bridge.js 💡 Pinned frontend API version to canary 2022-02-17 17:55:55 +00:00