I can use package manager to run 'update-database -verbose' locally.
Probably a stupid question but I can't find it online - once my website is deployed - how can I run this manually on the server?
Secondarily - what other strategies would you recommend for deploying database migrations to production - and how would they be preferable?
Thanks
You have a couple of options:
update-database -script
to generate the SQL commands to update the database on the server/packages/EntityFramework5.0.0/tools/migrate.exe
. I've used it successfully in the past with Jet Brains' Team City Build Server to setup the migrations with my deploy scripts.Update: Also, check out Sayed Ibrahim's blog, he works on the MsBuild Team at Microsoft and has some great insights on deployments