Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dev:prisma [2025/04/10 10:26] admin |
dev:prisma [2025/10/28 14:08] (current) admin |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Solve **The migration MY_MIGRATION was modified after it was applied** error | + | ==== Solve The migration MY_MIGRATION was modified after it was applied error ==== |
| Update migration sha in DB table: | Update migration sha in DB table: | ||
| Line 7: | Line 8: | ||
| And then replace migration sha value in prisma_migrations table | And then replace migration sha value in prisma_migrations table | ||
| + | |||
| + | |||
| + | ==== Rollback failed migrations ==== | ||
| + | < | ||
| + | prisma migrate resolve --rolled-back " | ||
| + | </ | ||
| + | |||
| + | ==== Add a migration in migrations table without running the migration ===== | ||
| + | < | ||
| + | prisma migrate resolve --applied " | ||
| + | </ | ||