What is the reverse for Update-Database (used in Package Manager Console)?
For Entity Framework Core ONLY and if you are using it from Package Manager
Update-Database –Migration yourMigrationName
Update-Database has a TargetMigration parameter that you can use to update to a particular migration. You can use that to upgrade or downgrade.
Update-Database –TargetMigration PreviousMigrationName
Update-Database –TargetMigration "lastcreatedMigrationName"
example:
update-database -targetmigration: "entity-logs-index"
If you want to rollback all migrations you can use (Stolen from this answer):
Update-Database -TargetMigration:0
But in EF Core it is
Update-Database -Migration:0