0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/data
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
..
db Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00
exporter Excluded mobiledoc_revisions table from exports (#10993) 2019-08-12 11:33:16 +01:00
importer Revert post.page->post.type handling 2019-08-19 12:02:14 +01:00
migrations Fixed "Unable to update nested relation" errors when rolling back migrations 2019-08-20 11:20:52 +01:00
schema Revert post.page->post.type handling 2019-08-19 12:02:14 +01:00
validation Revert post.page->post.type handling 2019-08-19 12:02:14 +01:00
timezones.json