How to retrigger the initial migrations down function
I have an initial migration for one of my verticals. It has a table Client, which should have been Clients. It somehow messed up putting the 's' behind. I now changed my migrations file manualy so it is called Clients. How can I retrigger this initial migration ?
dotnet ef database update somenumber_initial says: 'No migrations were applied. The database is already up to date.'
1 Reply
undoing the initial migration is just deleting the database and starting over
you shouldn't modify migrations by hand 99% of the time, fix your model and generate a new one (and delete the old ones if necessary)