Files
arr/.sqlx/query-9bad020cbe19c8c5d5f0888c1f21cfd20b095d56b961b67e8599c3a0e8b9770e.json
T
Miguel Palhas ef4722e1dd fix(db): bump sqlx to 0.9, honour no-transaction
sqlx-sqlite 0.8 ignored Migration.no_tx and wrapped every
migration in a transaction, where PRAGMA foreign_keys = OFF
is a no-op — so any table rebuild cascade-deleted children.
0.9 honours `-- no-transaction`, so 0014 drops its
movie_releases_backup / episode_releases_backup workaround
and runs the plain rebuild recipe with foreign keys off.
A migration test rebuilds both parents from a pre-0014
database and asserts the child link rows survive.

Closes #155

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-24 18:10:53 +01:00

51 lines
1.6 KiB
JSON

{
"db_name": "SQLite",
"query": "\n SELECT id AS \"id!: i64\", title AS \"title!: String\", year\n FROM movies\n WHERE id IN (\n SELECT m.id\n FROM movies m\n JOIN roots root ON root.id = m.root_id\n WHERE root.audience = 'kids'\n AND m.wanted = 1 AND m.blocked = 0 AND m.state = 'missing'\n AND m.search_attempts > 0\n AND NOT EXISTS (\n SELECT 1 FROM movie_releases mr\n JOIN releases r ON r.id = mr.release_id\n WHERE mr.movie_id = m.id AND r.verdict IN ('eligible', 'waived')\n )\n )\n ",
"describe": {
"columns": [
{
"name": "id!: i64",
"ordinal": 0,
"type_info": "Integer",
"origin": {
"Table": {
"table": "movies",
"name": "id"
}
}
},
{
"name": "title!: String",
"ordinal": 1,
"type_info": "Text",
"origin": {
"Table": {
"table": "movies",
"name": "title"
}
}
},
{
"name": "year",
"ordinal": 2,
"type_info": "Integer",
"origin": {
"Table": {
"table": "movies",
"name": "year"
}
}
}
],
"parameters": {
"Right": 0
},
"nullable": [
false,
false,
true
]
},
"hash": "9bad020cbe19c8c5d5f0888c1f21cfd20b095d56b961b67e8599c3a0e8b9770e"
}