X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FEventSmallDT.pm;fp=t%2Flib%2FDBICTest%2FSchema%2FEventSmallDT.pm;h=560581def2ed96767341af3e9068637a17e3693c;hb=3d98c75e2c45cbd5ddd995cbeb48810f6ad7e1ca;hp=0000000000000000000000000000000000000000;hpb=994dc91b510ccb6d25438bd2dd0e308a0a46d4c5;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/EventSmallDT.pm b/t/lib/DBICTest/Schema/EventSmallDT.pm new file mode 100644 index 0000000..560581d --- /dev/null +++ b/t/lib/DBICTest/Schema/EventSmallDT.pm @@ -0,0 +1,18 @@ +package DBICTest::Schema::EventSmallDT; + +use strict; +use warnings; +use base qw/DBICTest::BaseResult/; + +__PACKAGE__->load_components(qw/InflateColumn::DateTime/); + +__PACKAGE__->table('event_small_dt'); + +__PACKAGE__->add_columns( + id => { data_type => 'integer', is_auto_increment => 1 }, + small_dt => { data_type => 'smalldatetime', is_nullable => 1 }, +); + +__PACKAGE__->set_primary_key('id'); + +1;