1 package DBICTest::Schema::Event;
5 use base qw/DBICTest::BaseResult/;
7 __PACKAGE__->load_components(qw/InflateColumn::DateTime/);
9 __PACKAGE__->table('event');
11 __PACKAGE__->add_columns(
12 id => { data_type => 'integer', is_auto_increment => 1 },
14 # this MUST be 'date' for the Firebird and SQLAnywhere tests
15 starts_at => { data_type => 'date', datetime_undef_if_invalid => 1 },
17 created_on => { data_type => 'timestamp' },
18 varchar_date => { data_type => 'varchar', size => 20, is_nullable => 1 },
19 varchar_datetime => { data_type => 'varchar', size => 20, is_nullable => 1 },
20 skip_inflation => { data_type => 'datetime', inflate_datetime => 0, is_nullable => 1 },
21 ts_without_tz => { data_type => 'datetime', is_nullable => 1 }, # used in EventTZPg
24 __PACKAGE__->set_primary_key('id');
26 # Test add_columns '+colname' to augment a column definition.
27 __PACKAGE__->add_columns(
31 '+varchar_datetime' => {
32 inflate_datetime => 1,