Ghost/core/server/data/migrations
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
..
hooks Removed settings populateDefaults pre-migration 2021-02-10 10:34:08 +13:00
init Removed unnecessary checks during initial DB init 2022-02-21 08:44:40 +01:00
versions Added mrr column to subscriptions (#14448) 2022-04-12 11:02:18 +02:00
utils.js Cleaned up newsletter schema migrations (#14441) 2022-04-08 19:06:30 +05:30