remove a migration code example
Example 1: ef remove migration
/*to remove the last migration:*/
/*Visual Studio:*/
Remove-Migration
/*.Net Core CLI:*/
dotnet ef migrations remove
Example 2: how to delete migrations in django
python3 manage.py rm -r name/migrations
Example 3: laravel migration drop foreign keys
$table->dropPrimary('users_id_primary');
Example 4: delete a migration laravel
// delete a migration safely from laravel
delete migration from database/migrations/ directory
and also delete entry from migrations table
Example 5: drop column adonisjs migration
down () {
//Remove Default Value Constraint
this.alter('mytable', (table) => {
table.boolean('column1')
table.boolean('column2')
})
//Remove Columns
this.alter('mytable', (table) => {
table.dropColumn('column1')
table.dropColumn('column2')
})
}