Subject: | create script will error out if a table has no primary key |
i understand a table without primary key might be a bad thing
but i think the tool should just be able to handle it.
right now, it will error out
[root]# ./script/myapp_create.pl model DB DBIC::Schema MyApp::Schema
create=static dbi:mysql:dbname:hostname=dbhost user pass
exists "../lib/MyApp/Model"
exists "../t"
DBIx::Class::Schema::Loader::make_schema_at(): table_xyz has no primary
key at
/usr/lib/perl5/site_perl/5.8.8/Catalyst/Helper/Model/DBIC/Schema.pm line 519
Dumping manual schema for MyApp::Schema to directory ../lib ...
DBIx::Class::Schema::Loader::make_schema_at(): Cannot not overwrite
'../lib/MyApp/Schema.pm' without 'really_erase_my_files', it does not
appear to have been generated by Loader at
/usr/lib/perl5/site_perl/5.8.8/Catalyst/Helper/Model/DBIC/Schema.pm line 519
[root]#