Commit bcbc831
committed
ci: fix the schema drift check for Prisma 7
Prisma 7 dropped --shadow-database-url from migrate diff, so the step
failed on its very first run with a usage error rather than a real
finding.
Replaced the migrations-replay form with a direct comparison of the
database the migrations just produced against the schema. Same guarantee,
no shadow database, and one fewer moving part.
Verified in both directions locally before pushing: exit 0 when they
agree, exit 2 with the added column named when they do not. A check that
cannot fail is not a check.1 parent 18a9529 commit bcbc831
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments