如何在 appharbor sql 数据库中运行 ef 代码优先迁移?
我知道在 Heroku 中,您可以
heroku rake db:migrate
从 ruby 控制台运行,它会在 Heroku 应用程序的数据库上运行迁移。
appharbor 和 ef 代码优先迁移有类似的东西吗?
I know that in heroku you can run
heroku rake db:migrate
from your ruby console and itll run the migrations on the database for your heroku app.
Is there something similar for appharbor and ef code first migrations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实体框架团队正在研究这个问题,并且已经推出了测试版。这是来自 Scott Hanselman 的博客文章。此功能还支持迁移到远程服务器(例如您在 AppHarbor 上可能拥有的服务器)。
The Entity Framework team is working on this and there's a beta out. Here's a blog post from Scott Hanselman. This feature comes with support for migrating to remote servers (like the one you might have on AppHarbor) too.