X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FEvent.pm;h=fea3b074d8f70c64210af22e662bf089029fa240;hb=cb9fdccb2320feebf33c7e82e6724f6f6b4ad478;hp=e9642e32ff37a91e22175bb653472a00d4784631;hpb=fcd476ddb227fbcc39d328d28d7b6ab26219f936;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Event.pm b/t/lib/DBICTest/Schema/Event.pm index e9642e3..fea3b07 100644 --- a/t/lib/DBICTest/Schema/Event.pm +++ b/t/lib/DBICTest/Schema/Event.pm @@ -1,5 +1,18 @@ package DBICTest::Schema::Event; +use strict; +use warnings; use base qw/DBIx::Class/; -__PACKAGE__->load_components(qw/ +__PACKAGE__->load_components(qw/InflateColumn::DateTime PK::Auto Core/); + +__PACKAGE__->table('event'); + +__PACKAGE__->add_columns( + id => { data_type => 'integer', is_auto_increment => 1 }, + starts_at => { data_type => 'datetime' } +); + +__PACKAGE__->set_primary_key('id'); + +1;