entity framework - Auto running EF migrations on Azure app service -


our app runs on azure read/write permission on db. not nuts enabling ef's automatic migrations production application, , because db user account isn't owner, doesn't have permission run migrations anyway.

i have used script run migrate.exe apply migrations in past, , happy result. there way accomplish on azure app service?

currently running migrations right visual studio.

one option use web job run migration script on schedule, or on-demand:

web job overview

you'd want set ci deployment current ef migration script available job:

web jobs + ci

and more info

have backup strategy in place database, can smoke test completed migrations in staging environment (preferably in automated fashion) before flipping production.

good luck!


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -