Ghost/core/server/data/migrations/versions/2.0
Rishabh Garg d8e65d46e9
Updated post model queries to raw knex queries (#11246)
no issue

We split `posts` table into 2 in v3 with a new `posts_meta` table. Since migrations always use the version of code which is being migrated to - in this case the Post model - which in v3 relies on the posts_meta table, `2.x` migrations relying on post model will fail as it doesn't exist in the expected state. This PR updates all 2.x migrations using `models.Post` to use knex queries directly to access database and perform operations.
2019-10-17 10:36:18 +05:30
..
1-rename-amp-column.js Changed rollback messages 2018-08-16 12:13:24 +02:00
2-update-posts.js Updated post model queries to raw knex queries (#11246) 2019-10-17 10:36:18 +05:30
3-remove-koenig-labs.js Changes for Koenig and Ghost 2.0 (#9750) 2018-08-16 12:13:24 +02:00
4-permalink-setting.js 🎨 Changed fixture data and default settings (#9778) 2018-08-16 12:13:24 +02:00
5-remove-demo-post.js Updated post model queries to raw knex queries (#11246) 2019-10-17 10:36:18 +05:30
6-replace-fixture-posts.js Removed logic for migration script (2.0/6-replace-fixture-posts.js) (#10081) 2018-10-30 12:50:19 +07:00