Ghost/core/server/data/schema
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
..
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 Enabled Admin integration for tiers and offers API (#14325) 2022-03-16 16:46:26 +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 mrr column to subscriptions (#14448) 2022-04-12 11:02:18 +02:00
validator.js Switch to @trghost/validator, remove validator 2021-06-16 08:11:22 +01:00