On Mon, Feb 23, 2009 at 6:45 PM, Guillermo Roditi <grod...@gmail.com> wrote:
> $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 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)
_______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk