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:

  1. create model named mymodel 1 property: propa
  2. enabled migrations , created migration named initial
  3. published azure - great - works fine!
  4. deleted initial migration , added second property mymodel named propb
  5. created new migration called initial2
  6. 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

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -