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:
you'd want set ci deployment current ef migration script available job:
have backup strategy in place database, can smoke test completed migrations in staging environment (preferably in automated fashion) before flipping production.
good luck!
Comments
Post a Comment