从现有数据库生成 SubSonic 迁移代码?

发布于 2024-07-19 14:37:36 字数 368 浏览 5 评论 0原文

Rob Conery 于 2007 年 10 月撰写的有关 SubSonic Migrations 的文章他在“待办事项”列表中提到:

我希望能够“反转” 将现有数据库设计为 迁移文件

我正在考虑为具有很多表的现有数据库引入版本控制,SubSonic 看起来像是适合我的工具,但我不期待手动编写第一个迁移! 有谁知道 Rob 或其他人是否有时间编写一个自动执行此操作的工具?

In Rob Conery's post about SubSonic Migrations written in October 2007 he mentions in the 'Left To Do' list that:

I want to be able to “Reverse
Engineer” an existing DB into a
migration file

I am looking at introducing versioning control for an existing database with a lot tables, and SubSonic looks like the tool for me, but I'm not looking forward to writing the first migration by hand! Does anyone know if Rob or anyone got around to writing a tool for doing this automatically?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

紙鸢 2024-07-26 14:37:38

您可以为现有架构的当前状态生成一个脚本,并设置您的第一次迁移来运行该脚本。

You could generate a script for the current state of the existing schema and set your first migration to run the script.

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