c# - Getting code-first entity framework Azure back in sync -
i've been playing azure , mvc5/ef6 code first migrations , managed find wouldn't know how fix if production.
here's did:
- create model named
mymodel
1 property:propa
- enabled migrations , created migration named
initial
- published azure - great - works fine!
- deleted
initial
migration , added second propertymymodel
namedpropb
- created new migration called
initial2
- published azure - azure crashing because can't find field
propb
i've tried setting automaticmigrationsenabled = true;
didn't make difference.
so question is: if production database , happened - how azure database in sync , migrate changed models?
manually add code migration in "up" , "down" methods sync code required
Comments
Post a Comment