ASP.NET MVC 4, Migrations - How to run 'update-database' on a production server
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 amhed You have a couple of options: You could use update-database -script to generate the SQL commands to update the database on the server You could use the migrate.exe executable file that resides in the package folder on /packages/EntityFramework5.0.0