Ghost/core/server/data/migrations/versions/2.27
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-insert-ghost-db-backup-role.js Fixed "Unable to update nested relation" errors when rolling back migrations 2019-08-20 11:20:52 +01:00
2-insert-db-backup-integration.js Fixed "Unable to update nested relation" errors when rolling back migrations 2019-08-20 11:20:52 +01:00
3-add-subdirectory-to-relative-canonical-urls.js Fixed relative canonical_url values not being stored as root-relative (#10989) 2019-08-05 13:56:28 +01:00