1 package MySchema::FooCompat;
6 use base qw( DBIx::Class );
8 __PACKAGE__->load_components( qw( DateTime::Epoch Core ) );
9 __PACKAGE__->table( 'foo_compat' );
10 __PACKAGE__->add_columns(
12 data_type => 'bigint',
13 is_auto_increment => 1,
17 data_type => 'varchar',
21 bar => { # epoch stored as an int
22 data_type => 'bigint',
25 baz => { # epoch stored as a string
26 data_type => 'varchar',
30 # working in conjunction with DBIx::Class::TimeStamp
32 data_type => 'bigint',
35 modification_time => {
36 data_type => 'bigint',
41 __PACKAGE__->set_primary_key( 'id' );