[Dbix-class] 3-5 beer reward for improvements in DBIx::Class::Schema::Loader

Guillermo Roditi groditi at gmail.com
Sat Jan 26 18:51:46 GMT 2008


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 groditi at gmail.com or look for
me in #dbix-class  (groditi)

I hope someone takes this.

--Guillermo Roditi



More information about the DBIx-Class mailing list