[Dbix-class] [BUG] deploy($args, $dir) can't find the ddl file because it doesn't pass $version

Guillermo Roditi groditi at gmail.com
Mon Feb 23 23:45:41 GMT 2009


$schema->deploy({...}, $dir);

is supposed to look in $dir for a DDL file that matches ->ddl_filename. The
problem is that if you store your DDL file with a version number then deploy
won't find it because there's no way to give deploy a version number and
even if you did Storage::DBI::deploy doesn't accept a version number,
instead just throwing undef as the version to
Storage::DBI::deploy_statements, which then asks ddl_filename for a filename
using an undefined version.. so DBIC just ignores it and moves along. Unless
one were to keep an undefined version DDL file in the DDL dir it will just
never work correctly

-- =

Guillermo Roditi (groditi)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20090223/ea1=
a24ff/attachment.htm


More information about the DBIx-Class mailing list