X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FMySchema%2FFoo.pm;fp=t%2Flib%2FMySchema%2FFoo.pm;h=b1cdb3a14803fee7cc1123283b2c41edf2a0566f;hb=3be80851db62c6123d1430f321b5d9a47ee31379;hp=e98fcc599f0ca40791ac71aaaf9c96f96b9f978c;hpb=8857ad7362d0849cfba9aae280565f92936cfc43;p=dbsrgits%2FDBIx-Class-DateTime-Epoch.git diff --git a/t/lib/MySchema/Foo.pm b/t/lib/MySchema/Foo.pm index e98fcc5..b1cdb3a 100644 --- a/t/lib/MySchema/Foo.pm +++ b/t/lib/MySchema/Foo.pm @@ -27,6 +27,10 @@ __PACKAGE__->add_columns( size => 50, inflate_datetime => 'epoch', }, + dt => { # regular datetime field -- should not conflict + data_type => 'datetime', + inflate_datetime => 1, + }, # working in conjunction with DBIx::Class::TimeStamp creation_time => { data_type => 'bigint', @@ -38,14 +42,7 @@ __PACKAGE__->add_columns( inflate_datetime => 1, set_on_create => 1, set_on_update => 1, - }, - update_time => { - data_type => 'datetime', - set_on_create => 1, - set_on_update => 1, - is_nullable => 1, - }, - + } ); __PACKAGE__->set_primary_key( 'id' );