Catalyst 中的 DBIx::Class 升级(DBIx::Class::Schema::Loader)
我正在将 Catalyst 用于应用程序,并准备将生产版本升级到下一个主要版本。在新版本中,对数据库进行了很多更改。 Catalyst 中的 ORM 是使用 DBIx::Class::Schema::Loader 从物理开发数据库创建的。在像 Rails 这样的框架中,ORM 的工作方式相反,从一个版本到下一个版本的迁移很简单。
谁能告诉我是否有解决方案来创建将旧版本数据库更改为新版本的更改脚本?我尝试了 mysqldiff、MySQL Workbench(同步选项已损坏)、RedGate、Toad for MySQL 和许多其他工具。为此,必须有一种更简单的方法在 Catalyst 应用程序或 DBIx::Class 模型中执行此操作。
谁能帮助我吗?谢谢罗布
I am using Catalyst for an application and am getting ready to upgrade the production version to the next major release. In the new release a lot of changes have been made to the database. The ORM in Catalyst is created with DBIx::Class::Schema::Loader from the physical development database. In frameworks like rails the ORM works the other way around and migrations from one version to the next are simple.
Can anyone tell me whether there are solutions for creating an alter script that changes an old version of the database to a newer? I tried mysqldiff, MySQL Workbench (synchronize option is broken), RedGate, Toad for MySQL and a number of other tools. There has to be an easier way to do this in a Catalyst application or DBIx::Class model for that matter.
Can anyone help me? Thx
Rob
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 DBIx::Class::DeploymentHandler。它不是最容易深入的,但它可能正是您想要的。这里有一篇关于它的一些功能的精彩(虽然简短)的文章 - DBIx::Class::DeploymentHandler 非常棒。
Checkout DBIx::Class::DeploymentHandler. It isn’t the easiest to dive into but it is probably exactly what you want. There is a nice, if brief, write-up of some of its power here–DBIx::Class::DeploymentHandler is Awesome.