Ghost/core/server/data/migrations/versions/3.0
Rishabh Garg 169daead1f
Fixed post meta migration for 3.x (#11438)
no issue

Since we added `email_subject` to `posts_meta` table in `3.1`, the migration tries to add `email_subject` column from post table, which does not exist and thus tries adding `undefined` value for column. Since sqlite expects default values while inserting new columns, this breaks any migration directly from `1.x`/`2.x` to 3.x.

The fix adds a default `null` value for any post_schema entry which doesn't has a value.
2019-12-17 17:14:53 +05:30
..
01-remove-user-ghost-auth-columns.js Prefixed 3.0 migrations with 0 to preserve order 2019-09-16 13:21:39 +01:00
02-drop-token-auth-tables.js Prefixed 3.0 migrations with 0 to preserve order 2019-09-16 13:21:39 +01:00
03-drop-client-auth-tables.js Marked the client auth table drop migration as irreversible 2019-09-23 17:22:46 +01:00
04-add-posts-meta-table.js Prefixed 3.0 migrations with 0 to preserve order 2019-09-16 13:21:39 +01:00
05-populate-posts-meta-table.js Fixed post meta migration for 3.x (#11438) 2019-12-17 17:14:53 +05:30
06-remove-posts-meta-columns.js Prefixed 3.0 migrations with 0 to preserve order 2019-09-16 13:21:39 +01:00
07-add-posts-type-column.js Prefixed 3.0 migrations with 0 to preserve order 2019-09-16 13:21:39 +01:00
08-populate-posts-type-column.js Prefixed 3.0 migrations with 0 to preserve order 2019-09-16 13:21:39 +01:00
09-remove-posts-page-column.js Prefixed 3.0 migrations with 0 to preserve order 2019-09-16 13:21:39 +01:00
10-remove-empty-strings.js Fixed error rolling back the "remove empty strings" migration 2019-09-18 16:08:18 +01:00
11-update-posts-html.js 🐛 Fixed 3.0 migration on SQLite with many posts (#11302) 2019-10-29 12:16:47 +00:00
12-populate-members-table-from-subscribers.js 🐛 Fixed 3.0 SQLite subscribers migration (#11383) 2019-11-11 18:20:38 +07:00
13-drop-subscribers-table.js Removed superfluous space from filename 2019-10-17 16:58:46 +07:00
14-remove-subscribers-flag.js Added migration for subscriber labs flag 2019-10-17 16:58:46 +07:00