0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/data/migrations/versions/3.0
Naz Gargol 9b347d6d95 🐛 Fixed 3.0 migration on SQLite with many posts (#11302)
refs https://github.com/TryGhost/Ghost/pull/11270

- Fixed 3.0/11-update-posts-html migration which failed in scenario when more than 999 posts with posts_meta relation were present
- The issue was originally spotted here: https://github.com/TryGhost/Ghost/pull/11270#issuecomment-546248308
- The main problem is in the `SELECT` statement which is generated for `findAll` method in Bookshelf which creates `WHERE IN(post_ids_here)` statement with all posts in the database
- Using knex directly as that's a preferred way to write migrations (does not depend on the model layer)
2019-10-29 12:16:47 +00:00
..
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 3.0 migration for SQLite (#11270) 2019-10-28 14:21:21 +01:00
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 subscribers migration to work without model (#11227) 2019-10-11 10:43:18 +01: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