Is it possible to roll back a database migration after the database is updated by the same?
Asked
Active
Viewed 316 times
1 Answers
0
You can rollback to the last migration,
PM> Update-Database -TargetMigration:"NameOfSecondToLastMigration"

H.Sarxha
- 157
- 1
- 9
-
I have found the answer in another stackoverflow question below: https://stackoverflow.com/questions/68265158/is-it-possible-to-remove-an-ef-core-database-migration-after-the-database-is-upd/68266243#68266243 – JOBIN WILFRED Aug 03 '21 at 06:58