How to re-create initial migration on the same .cs file
问题 As common in EF Code First I've generated an "Initial Create" migration file where is located an outdated model of my db (I'm developing the app so the model is still changing). Now I have a "new model" defined in my code and instead of creating a new migration for that I just want to update the already existing file, because it still is the initial create migration. I've tried using this without any luck Update-database -targetmigration $initialcreate It returns Unable to update database to