Deluan
32ac53dc9f
refactor(migrations): propagate context.Context through all DB calls
...
Thread the context.Context that goose.UpContext already passes into every
migration through to all DB calls: tx.Exec/Query/QueryRow become
tx.ExecContext/QueryContext/QueryRowContext with ctx. The shared helpers in
migration.go (notice, forceFullRescan, isDBInitialized) gain a ctx parameter
and all call sites are updated. No-op migration functions use blank params
(_ context.Context, _ *sql.Tx).
This is a behavior-preserving change: the SQL, arguments, and ordering of every
migration are unchanged; only cancellation/deadline propagation is added.
Add a forbidigo lint rule scoped to db/migrations/ that forbids the
non-context tx.Exec/Query/QueryRow forms, preventing regression.
Signed-off-by: Deluan <deluan@navidrome.org>
2026-06-18 09:58:43 -04:00
..
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2024-05-08 19:54:48 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2024-05-08 19:54:48 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2024-05-08 19:54:48 -04:00
2026-06-18 09:58:43 -04:00
2025-02-19 20:35:17 -05:00
2026-06-18 09:58:43 -04:00
2024-08-03 13:37:21 -04:00
2024-10-19 20:46:54 -04:00
2024-10-26 14:06:34 -04:00
2026-06-18 09:58:43 -04:00
2025-05-21 22:16:10 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2025-06-13 17:27:57 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2025-06-28 18:43:11 -04:00
2025-06-28 19:00:13 -04:00
2025-06-30 17:11:54 -04:00
2025-07-18 18:41:12 -04:00
2025-11-06 14:41:09 -05:00
2025-11-24 23:18:05 -05:00
2025-12-06 11:07:18 -05:00
2026-01-05 19:05:11 -05:00
2026-01-14 19:22:48 -05:00
2026-01-18 17:42:42 -05:00
2026-06-18 09:58:43 -04:00
2026-02-28 10:59:13 -05:00
2026-03-01 14:07:18 -05:00
2026-03-02 11:39:59 -05:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-03-15 22:19:55 -04:00
2026-03-16 07:55:22 -04:00
2026-03-18 18:57:33 -04:00
2026-04-05 12:56:32 -04:00
2026-04-10 19:29:20 -04:00
2026-06-18 09:58:43 -04:00
2026-05-22 18:00:13 -03:00
2026-06-12 15:53:37 -04:00
2026-06-13 13:15:20 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00