I'm using EF 5.0 Code First and am testing automatic migrations. Everything works fine when I'm working locally but when I upload the database to Azure and change the connection string accordingly the migration fails to work. I'm using the MigrateDatabaseToLatestVersion initializer. Is this something that Azure doesn't allow? I'm not getting any error. Just no migration. Ideas?
4
votes
I use migrations on azure and have never had any issues, is there any kind of error message?
- Not loved
No message. Azure databases don't have system tables so you can't add dbo._MigrationHistory. I thought that might be the problem. Are you doing automatic migrations? Are you using Entity Framework Code First? Are you doing them in code? What is you process?
- user1626137
im using git deploy and i didnt have to do anything special at all with the database, it just worked first try. Yes im using EF 5, code first and auto migrations
- Not loved