Pretty simple:
Make DBIx::Class::Schema::Loader::mysql add the following to it's
loader output, where applicable.

For one beer each:
-  extra => {unsigned  => 1,}
-  is_auto_increment   => 1,
-  is_foreign_key        => 1,

For two to three beers (depending on level of completion):
When a column is of type timestamp / datetime / date mysql allows you
to use "ON UPDATE CURRENT TIMESTAMP" or default the value to NOW().
Make a Loader option that allows you to dump these out as classes
which use DBIx::Class::TimeStamp and set_on_create => 1, set_on_update
=> 1.

For a submission to be valid it should work, contain POD, and optional
tests. Ideally the test suite would prompt you and ask you if you want
to run the tests or not, but if you can just make some tests that work
and put them in etc/ or somewhere else that's fine too. All
submissions should be licensed under the same licenses as
DBIx::Class::Schema::Loader.

First come first serve!!
For payment on completion please email [EMAIL PROTECTED] or look for
me in #dbix-class  (groditi)

I hope someone takes this.

--Guillermo Roditi

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]

Reply via email to