Repository navigation
Commit 1ec0db9
fix(mfa-1): bind seed-migration UUID with sa.Uuid type to satisfy asyncpg/postgres
T22's seed migration shipped with id=str(uuid.uuid4()), which asyncpg renders
as VARCHAR and Postgres rejects against the uuid-typed id column with
DatatypeMismatchError. The whole migration block (T5 + T22) ran in one
transaction so the failure rolled back T5's MFA tables too — production boot
went into a crashloop on the new image. Fix: use sa.bindparam with explicit
sa.Uuid() type so the parameter is rendered as a real postgres uuid and stays
cross-dialect.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bf77ad2 commit 1ec0db9
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
79 | | - | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
0 commit comments