[Dbix-class] Re: [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:50:02 GMT 2009


On Mon, Feb 23, 2009 at 6:45 PM, Guillermo Roditi <groditi at gmail.com> wrote:

> $schema->deploy({...}, $dir);
>
> is supposed to look in $dir for a DDL file that matches ->ddl_filename. T=
he
> problem is that if you store your DDL file with a version number then dep=
loy
> 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 filen=
ame
> using an undefined version.. so DBIC just ignores it and moves along. Unl=
ess
> one were to keep an undefined version DDL file in the DDL dir it will just
> never work correctly


Actually that last case won't ever work either since create_ddl_dir makes
sure to use VERSION, or just fabricate a version number '1.x', totally
undocumented.

Basically the $dir option in ->deploy is completely useless



-- =

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


More information about the DBIx-Class mailing list