How do I undo the last Add-Migration command?

If you haven’t used Update-Database you can just delete the migration file. If you’ve run the update you should roll it back using Update-Database -TargetMigration "NameOfPreviousMigration" then delete the migration file.

Reference:

Tips for Entity Framework Migrations

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)