Ghost/core/server/data/migrations/versions/3.0
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
..
01-remove-user-ghost-auth-columns.js Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
02-drop-token-auth-tables.js Added missing Bluebird requires 2020-11-05 11:55:14 +00:00
03-drop-client-auth-tables.js Added missing Bluebird requires 2020-11-05 11:55:14 +00:00
04-add-posts-meta-table.js Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
05-populate-posts-meta-table.js Added missing Bluebird requires 2020-11-05 11:55:14 +00:00
06-remove-posts-meta-columns.js Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
07-add-posts-type-column.js Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
08-populate-posts-type-column.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
09-remove-posts-page-column.js Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
10-remove-empty-strings.js Fixed "no-shadow" linting error in server/data modules (#12288) 2020-10-20 11:56:46 +13:00
11-update-posts-html.js Fixed mobiledoc errors when upgrading from v1/v2 to v4 (#12741) 2021-03-09 10:51:44 +00:00
12-populate-members-table-from-subscribers.js Added missing Bluebird requires 2020-11-05 11:55:14 +00:00
13-drop-subscribers-table.js Added missing Bluebird requires 2020-11-05 11:55:14 +00:00
14-remove-subscribers-flag.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00