mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
9b347d6d95
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) |
||
---|---|---|
.. | ||
01-remove-user-ghost-auth-columns.js | ||
02-drop-token-auth-tables.js | ||
03-drop-client-auth-tables.js | ||
04-add-posts-meta-table.js | ||
05-populate-posts-meta-table.js | ||
06-remove-posts-meta-columns.js | ||
07-add-posts-type-column.js | ||
08-populate-posts-type-column.js | ||
09-remove-posts-page-column.js | ||
10-remove-empty-strings.js | ||
11-update-posts-html.js | ||
12-populate-members-table-from-subscribers.js | ||
13-drop-subscribers-table.js | ||
14-remove-subscribers-flag.js |