Hi,

I have created a class of DBIx::Class modules using the Catalyst helper DBIC::Schema. The created modules work well, but I have tried to deploy them into another database without success.

For example, in a database table I have a date field, and DBIC::Schema helper module exported it with the following parameter:

size => 10,

So when I have tried to deploy the module, it tried to create an SQL like this:

 date DATE(10) NOT NULL DEFAULT '0000-00-00',

...which is not correct and it gave errors.

It also tried to do things like:

 created datetime(19),
 time TIME(8) NOT NULL DEFAULT '',
 trimestru ENUM() NOT NULL DEFAULT '',

Is there another method to create the modules automaticly using DBIC::Schema Catalyst helper or something else, or the only secure method is to edit the modules manually?

Thank you.

Octavian


_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to