Posts

Showing posts from July, 2025

Delete Migration and its history

Delete Migration and its history  I f you want to  delete the migration and its history  (so it's like it never existed), do the following: Delete the migration folder: rm   -rf   libs/api/data-access-db/src/lib/migrations/2025070 9143108_update_enums Remove the migration record from the database: If you use Prisma, run this SQL in your database (using  psql  or a GUI): DELETE   FROM   "_prisma_migrations"   WHERE  migration_name  =   '20250709143108_update_enums' ; This will remove the migration from both your codebase and the migration history table.