X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FEvent.pm;h=29bf11dfc4509a8ac98f46353396f27e3194dd97;hb=851437691480515dfef50e5e170b77ff51d07620;hp=22b655e623997d6476b0a28f3a905ca61b3fa195;hpb=65b386dfedd73d8b6e98d2f52039280fc63a8e7d;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/Event.pm b/t/lib/DBICTest/Schema/Event.pm index 22b655e..29bf11d 100644 --- a/t/lib/DBICTest/Schema/Event.pm +++ b/t/lib/DBICTest/Schema/Event.pm @@ -10,14 +10,27 @@ __PACKAGE__->table('event'); __PACKAGE__->add_columns( id => { data_type => 'integer', is_auto_increment => 1 }, - starts_at => { data_type => 'datetime' }, + +# this MUST be 'date' for the Firebird and SQLAnywhere tests + starts_at => { data_type => 'date', datetime_undef_if_invalid => 1 }, + created_on => { data_type => 'timestamp' }, - varchar_date => { data_type => 'varchar', inflate_date => 1, size => 20, is_nullable => 1 }, - varchar_datetime => { data_type => 'varchar', inflate_datetime => 1, size => 20, is_nullable => 1 }, + varchar_date => { data_type => 'varchar', size => 20, is_nullable => 1 }, + varchar_datetime => { data_type => 'varchar', size => 20, is_nullable => 1 }, skip_inflation => { data_type => 'datetime', inflate_datetime => 0, is_nullable => 1 }, ts_without_tz => { data_type => 'datetime', is_nullable => 1 }, # used in EventTZPg ); __PACKAGE__->set_primary_key('id'); +# Test add_columns '+colname' to augment a column definition. +__PACKAGE__->add_columns( + '+varchar_date' => { + inflate_date => 1, + }, + '+varchar_datetime' => { + inflate_datetime => 1, + }, +); + 1;