Steevo Wiki

You are here: Home » dev » prisma

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 ====
 +<code>
 +prisma migrate resolve --rolled-back "20250411120407_created_at_not_null"
 +</code>
 +
 +==== Add a migration in migrations table without running the migration =====
 +<code>
 +prisma migrate resolve --applied "[migration_name]"
 +</code>