mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
f038fbe0aa
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 |
||
---|---|---|
.. | ||
1-add-db-backup-content-permission.js | ||
2-add-db-backup-content-permission-to-roles.js | ||
3-insert-ghost-scheduler-role.js | ||
4-insert-scheduler-integration.js | ||
5-add-scheduler-permission-to-roles.js | ||
6-add-type-column.js | ||
7-populate-type-column.js | ||
8-remove-page-column.js |