Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

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

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


t.northfield at gmail

Mar 27, 2007, 8:33 PM

Post #1 of 3 (2698 views)
Permalink
Catalyst::Helper::Model::DBIC::Schema. No tables found in database.

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?


blblack at gmail

Mar 31, 2007, 4:23 PM

Post #2 of 3 (2534 views)
Permalink
Re: Catalyst::Helper::Model::DBIC::Schema. No tables found in database. [In reply to]

On 3/27/07, northfiled <t.northfield [at] gmail> 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

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


t.northfield at gmail

Apr 1, 2007, 3:11 AM

Post #3 of 3 (2555 views)
Permalink
Re: Catalyst::Helper::Model::DBIC::Schema. No tables found in database. [In reply to]

hi Brandon.
It seems to be able to make Schema by correctly reading the table. Thank
you!!!.

2007/4/1, Brandon Black <blblack [at] gmail>:

> On 3/27/07, northfiled <t.northfield [at] gmail> 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
>
> _______________________________________________
> List: Catalyst [at] lists
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/
>

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.