Ghost/core/server/data/migrations/versions/2.28
Kevin Ansfield f038fbe0aa Fixed "Unable to update nested relation" errors when rolling back migrations
no issue

- we recently started wrapping rollbacks in transactions (https://github.com/TryGhost/knex-migrator/pull/161)
- in a number of migrations we were calling `model.destroy()` without passing through the options which includes the current transaction
- for models which are using `bookshelf-relations` this could result in an internal `SQLITE_BUSY: database is locked` error because it tries to run queries against tables that have been locked by previous queries in the transaction
- by passing through the options when calling `.destroy()` it allows the `bookshelf-relations` to re-use the same transction avoiding the database lock problems
2019-08-20 11:20:52 +01:00
..
1-add-db-backup-content-permission.js Added migrations for backupContent permission 2019-08-07 17:57:26 +08:00
2-add-db-backup-content-permission-to-roles.js Fixed naming of backup cotent perm migration 2019-08-09 15:00:26 +08:00
3-insert-ghost-scheduler-role.js Added migrations for scheduler integration, permission and role 2019-08-07 14:56:51 +02:00
4-insert-scheduler-integration.js Fixed "Unable to update nested relation" errors when rolling back migrations 2019-08-20 11:20:52 +01:00
5-add-scheduler-permission-to-roles.js Added migrations for scheduler integration, permission and role 2019-08-07 14:56:51 +02:00
6-add-type-column.js No-op'd post.page->post.type migrations, added cleanup post.type->post.page migrations 2019-08-19 12:02:14 +01:00
7-populate-type-column.js No-op'd post.page->post.type migrations, added cleanup post.type->post.page migrations 2019-08-19 12:02:14 +01:00
8-remove-page-column.js No-op'd post.page->post.type migrations, added cleanup post.type->post.page migrations 2019-08-19 12:02:14 +01:00