简体   繁体   中英

DBIx::Class upgrade in Catalyst (DBIx::Class::Schema::Loader)

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM