Update-Database -TargetMigration $InitialDatabase
(Deletes all tables in database, but keeps Database file)- If you have a file with the name "InitialCreate1" delete it. If it's not there, no worries.
Add-Migration InitialCreate
(re-create InitialCreate migration file with you new models changes)Update-Database
(now apply the newly created migration)
Created
December 5, 2015 20:34
-
-
Save jcockhren/243d76d925d51abcb3df to your computer and use it in GitHub Desktop.
Wrangling Database Migrations
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment