Ghost/core/server/data/migrations/versions
Kevin Ansfield cbbf5b4ad4
Fixed mobiledoc errors when upgrading from v1/v2 to v4 (#12741)
no issue

Upgrading from v1 or v2 can result in successful upgrades but with mobiledoc errors showing in the logs:

```
NAME: InternalServerError
MESSAGE: Mobiledoc card 'card-markdown' not found.
```

The errors do not signify a problem as long as the 4.0 migrations run because those rename the deprecated card before re-rendering.

- `@tryghost/kg-default-cards` dropped support for `card-markdown` cards. 4.0 migrations handled this by renaming all `card-markdown` cards to `markdown` before re-generating any content
- 2.0 and 3.0 also had migrations that re-generated content but they are run before the 4.0 card rename migration meaning that the mobiledoc renderer sees cards that it doesn't know about. The behaviour for unknown cards is to log an error and skip rendering of that card
- by NOOPing the 2.0 and 3.0 migrations we eliminate the incompatibility errors and reduce the amount of processing the upgrade needs to perform
2021-03-09 10:51:44 +00: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 Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
1.21 Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
1.22 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
1.25 Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
2.0 Fixed mobiledoc errors when upgrading from v1/v2 to v4 (#12741) 2021-03-09 10:51:44 +00:00
2.2 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +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 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
2.16 Removed 2.16 member permission migration 2019-05-02 17:31:38 +02:00
2.17 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
2.18 Fixed "no-shadow" linting error in server/data modules (#12288) 2020-10-20 11:56:46 +13: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 Added missing Bluebird requires 2020-11-05 11:55:14 +00:00
2.28 Updated ALL permissions migrations to use the utils 2020-06-25 19:15:25 +02:00
2.29 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00: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 Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +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 Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
3.0 Fixed mobiledoc errors when upgrading from v1/v2 to v4 (#12741) 2021-03-09 10:51:44 +00:00
3.1 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +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 Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +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 Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
3.12 Updated ALL permissions migrations to use the utils 2020-06-25 19:15:25 +02:00
3.18 Updated ALL permissions migrations to use the utils 2020-06-25 19:15:25 +02:00
3.19 Added migration updating members from address with domain 2020-06-08 23:47:02 +05:30
3.22 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.23 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.24 Added missing Bluebird requires 2020-11-05 11:55:14 +00:00
3.25 Fixed version for amp_gtag_id setting migration 2020-07-15 15:33:37 +02:00
3.26 Fixed version for amp_gtag_id setting migration 2020-07-15 15:33:37 +02:00
3.29 🐛 Fixed failing migration from <2.34 to 3.29 2020-08-17 18:31:00 +01:00
3.30 Granted Admin users ability to impersonate member (#12132) 2020-08-18 14:17:56 +05:30
3.32 Added routes_hash setting (#12171) 2020-09-07 21:54:55 +12: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 Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
3.38 🐛 Fixed migration for SQLite3 (#12371) 2020-11-17 16:39:42 +00:00
3.39 Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
3.40 Added members.email_{count,opened_count} column migrations (#12470) 2020-12-09 12:21:56 +00:00
3.41 Added FirstPromoter Integration (#12540) 2021-01-15 19:05:15 +05:30
4.0 🏗 Changed internal URL storage format to use __GHOST_URL__ (#12731) 2021-03-05 13:54:01 +00:00