Ghost/core/server/data/migrations/versions
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
..
1.3 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.4 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.5 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.7 Removed all clients and client_trusted_domains related code 2019-09-12 15:09:49 +01:00
1.9 Updated ALL permissions migrations to use the utils 2020-06-25 19:15:25 +02:00
1.13 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.18 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
1.19 Updated ALL permissions migrations to use the utils 2020-06-25 19:15:25 +02:00
1.20 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
1.21 Refactored fixtures to be loaded by fixture manager 2021-11-16 11:17:03 +00:00
1.22 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
1.25 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
2.0 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.2 Refactored fixtures to be loaded by fixture manager 2021-11-16 11:17:03 +00:00
2.3 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
2.6 Updated ALL permissions migrations to use the utils 2020-06-25 19:15:25 +02:00
2.8 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
2.13 💡Reverted "empty-string to NULL" db migration (#10430) 2019-01-29 14:41:04 +00:00
2.14 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
2.15 Refactored fixtures to be loaded by fixture manager 2021-11-16 11:17:03 +00:00
2.16 Removed 2.16 member permission migration 2019-05-02 17:31:38 +02:00
2.17 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.18 Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
2.21 Updated ALL permissions migrations to use the utils 2020-06-25 19:15:25 +02:00
2.22 Updated ALL permissions migrations to use the utils 2020-06-25 19:15:25 +02:00
2.27 Refactored fixtures to be loaded by fixture manager 2021-11-16 11:17:03 +00:00
2.28 Refactored fixtures to be loaded by fixture manager 2021-11-16 11:17:03 +00:00
2.29 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.31 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
2.32 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
2.33 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.34 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
2.35 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
2.37 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.0 Removed use of deprecated new Error() syntax 2021-07-14 12:16:44 +04:00
3.1 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
3.2 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.6 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
3.7 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.8 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.9 Updated ALL permissions migrations to use the utils 2020-06-25 19:15:25 +02:00
3.11 Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
3.12 Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
3.18 Updated ALL permissions migrations to use the utils 2020-06-25 19:15:25 +02:00
3.19 Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
3.22 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
3.23 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
3.24 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.25 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.26 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.29 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
3.30 Granted Admin users ability to impersonate member (#12132) 2020-08-18 14:17:56 +05:30
3.32 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.33 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
3.34 Added tokens table to the database 2020-09-17 16:08:35 +01:00
3.35 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.36 Added snippets permissions migration and fixtures (#12283) 2020-10-16 12:53:09 +01:00
3.37 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.38 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
3.39 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
3.40 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.41 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.0 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.1 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.2 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.3 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.4 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.5 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.6 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.7 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.8 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.9 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.11 Added email disabling flag to settings records 2021-07-29 20:30:30 +12:00
4.12 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.13 Gave Administrators permission to connect to Stripe (#13228) 2021-08-26 11:00:40 +01:00
4.14 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.15 Added temporary database table for analytic events (#13312) 2021-09-17 11:15:21 +02:00
4.16 Moved theme settings permissions migration to correct Ghost version 2021-09-27 10:56:23 +01:00
4.17 Added offers table (#13381) 2021-10-01 12:18:33 +02:00
4.19 Prefixed migration with 01 2021-10-13 17:37:39 +02:00
4.20 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.22 Moved launchComplete user setting as global editor setting (#13703) 2021-11-04 18:03:51 +05:30
4.23 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.33 Added note for using id as slug for free tier 2022-03-11 18:08:47 +05:30
4.34 Added welcome_page_url column to products table 2022-01-26 11:44:40 +02:00
4.35 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.36 Added the last_seen_at column to members 2022-02-09 11:57:45 +01:00
4.37 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.38 Switched products.visible for products.visibility (#14264) 2022-03-04 11:07:38 +00:00
4.39 Migrated visibility column from portal settings (#14253) 2022-03-07 11:38:39 +00:00
4.40 Enabled Admin integration for tiers and offers API (#14325) 2022-03-16 16:46:26 +05:30
4.42 Updated migration eslint rule to catch bad filenames 2022-04-05 11:50:39 +01:00
4.43 Fixed newsletter schema column validation (#14456) 2022-04-11 15:05:02 +05:30
4.44 Added mrr column to subscriptions (#14448) 2022-04-12 11:02:18 +02:00