Ghost/core/server/data/migrations/versions/4.44
Simon Backx 2db746e559
Added mrr column to subscriptions (#14448)
refs https://github.com/TryGhost/Team/issues/1457

We want to save the MRR with a subscription to simplify the calculation of the total MRR once, in 5.0, we also take 'forever' offers into account into the MRR (so we can just SUM the MRR of all subscriptions).

- Sets the MRR to 0 for now.
- Separate commit will fill in all the values in a data migration, but this needs to get merged first because we need this new column in order to update the members-api package (so we already save the MRR before doing the data migration).
- Updated `test/e2e-api/admin/legacy-members.test.js` with improved body assertions.
2022-04-12 11:02:18 +02:00
..
2022-04-06-15-22-populate-type-column-for-paid-subscription-events.js Populated type column of existing events (#14437) 2022-04-11 11:41:44 +01:00
2022-04-08-11-54-add-cancelled-events.js Added migration to populate cancellation events (#14438) 2022-04-11 15:18:12 +01: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