You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
More streamlined workflow for early stage app development #3053
While developing a new app, nobody's using my local database other than me, so the only migration I need is the initial one. The process involves writing some code, blowing away the old state of the database and associated migrations, then generating new ones and applying them back to the database. It sure would be nice to be able to do this literally in one step.
e.g. Something like dnx ef rebuild-all and have it destroy the existing migrations, unapply them from the database, generate new migrations and apply those to the database.
Reacted by Brice Lambson, kmolerov, David Ruhmann, harveymak, xiety, KonstantinaD, Kuba, Alex, Daniel Lozano Navas, Leonel Sanches da Silva and 65 more
EF Team Triage: Obviously there are some details of implementation to iron out, but we do agree that this scenario would be good to improve. Moving to the backlog as we will look at it after our initial RTM.
Any updates on that?
Take a look at Java Hibernate... Just set update strategy and it's done... At the moment with net.core it's painful with every change of db with code first approach
Activity
davidfowl commentedon Sep 8, 2015
I'm going to +1 this 😄
ErikEJ commentedon Sep 8, 2015
Could you use the existing:
axefrog commentedon Sep 8, 2015
Those aren't command line options though...?
ErikEJ commentedon Sep 8, 2015
No, those are code, so you never need to fall out to the command line
anpete commentedon Sep 8, 2015
@bricelam Is it possible for someone to make a .cmd file to do this now, using the existing commands?
bricelam commentedon Sep 8, 2015
Hmm, we don't expose any commands for the APIs Erik mentioned, but we have #2476 on the Backlog.
But I suppose you could, yes:
anpete commentedon Sep 8, 2015
@bricelam Thanks! That's what I meant.
rowanmiller commentedon Sep 9, 2015
EF Team Triage: Obviously there are some details of implementation to iron out, but we do agree that this scenario would be good to improve. Moving to the backlog as we will look at it after our initial RTM.
murbanowicz commentedon Nov 9, 2017
Any updates on that?
Take a look at Java Hibernate... Just set update strategy and it's done... At the moment with net.core it's painful with every change of db with code first approach
15 remaining items
kaptcha0 commentedon Mar 15, 2022