[Catalyst] Catalyst::Helper::Model::DBIC::Schema. No tables found in database.

Brandon Black blblack at gmail.com
Sun Apr 1 00:23:49 GMT 2007


On 3/27/07, northfiled <t.northfield at gmail.com> wrote:
> hello
> helper model dbic cant generate table schema.
>
> # script/myapp_create.pl model DBIC DBIC::Schema myapp::Schema create=static
> dbi:mysql:myapp myapp hoge
>  exists "/home/myapp/myapp/script/../lib/myapp/Model"
>  exists "/home/myapp/myapp/script/../t"
> No tables found in database, nothing to load at
> /usr/lib/perl5/site_perl/5.8.8/DBIx/Class/Schema/Loader/Base.pm
> line 452.
> Dumping manual schema for myapp::Schema to directory
> /home/myapp/myapp/script/../lib ...
>  /home/myapp/myapp/script/../lib/myapp/Schema.pm exists,
> will not overwrite
> Schema dump completed.
>  exists
> "/home/myapp/myapp/script/../lib/myapp/Model/DBIC.pm"
> why "No tables found in database, nothing to load "?
> It is possible to use it from Catalyst with DBIC. There is actually a Mysql
> table.
> fedora core 5 & perl 5.8.8 & catalyst 5.7 & Mysql 5.0
> What is thought?
>

Recent versions of DBD::mysql (4.002+) changed the behavior of the
method that the DBIx::Class::Schema::Loader uses to find the list of
tables to load, which causes this problem.  Upgrade
DBIx::Class::Schema::Loader to 0.03010 to get the fix.

-- Brandon



More information about the Catalyst mailing list