[Dbix-class] Versioned schema: need HOWTO

Alex Povolotsky tarkhil at over.ru
Wed Sep 28 09:16:20 GMT 2011


I'm using versioned schema, and all my attempts to upgrade fails.

I've changed database, created Schema (using catalyst scripts), bumped 
version of Schema.pm, and tried to run simple code like

if (!$schema->get_db_version()) {
   # schema is unversioned
} else {

on different server with the same code and database not upgraded.

It fails

DBIx::Class::Schema::Versioned::upgrade(): Upgrade not possible, no 
upgrade file found (upgrades/GIMS5-Schema-8.23-8.24-MySQL.sql), please 
create one

How do I create upgrade file?


More information about the DBIx-Class mailing list