[Dbix-class] Defect in DBIC's doc (deploy).

Ash Berlin ash_cpan at firemirror.com
Sun May 20 23:36:23 GMT 2007


Oleg Pronin wrote:
> Greetings.
>  
> There is a small defect in docs:
> http://search.cpan.org/~blblack/DBIx-Class-0.07006/lib/DBIx/Class/Schema.pm#deploy_(EXPERIMENTAL)
>  
> It is said that i need to add "source_names to |$sqlt_args| containing 
> an array reference of source <http://search.cpan.org/perldoc?source> 
> names of tables to be deployed".
>  
> but
>             $schema->deploy({
>                 source_names   => ['mytable'],
>             });
> has no effect.
>  
> Right syntax is
>             $schema->deploy({
>                 parser_args => {source_names   => ['mytable']},
>             });
>  
>  
> 
> 
> ------------------------------------------------------------------------
> 

This has already been fixed in the -current branch so passing a sources 
arg to deploy works (It got implemented in -current first, then someone 
else patched trunk because I forgot to add a note to the change log - my 
bad.)

-ash



More information about the Dbix-class mailing list