从现有数据库生成 SubSonic 迁移代码?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以为现有架构的当前状态生成一个脚本,并设置您的第一次迁移来运行该脚本。
You could generate a script for the current state of the existing schema and set your first migration to run the script.