如何在 appharbor sql 数据库中运行 ef 代码优先迁移?

发布于 2024-12-21 00:54:04 字数 161 浏览 3 评论 0原文

我知道在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

盛夏已如深秋| 2024-12-28 00:54:04

实体框架团队正在研究这个问题,并且已经推出了测试版。这是来自 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文