Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / EventTZPg.pm
1 package DBICTest::Schema::EventTZPg;
2
3 use strict;
4 use warnings;
5
6 use base qw/DBICTest::BaseResult/;
7
8 __PACKAGE__->load_components(qw/InflateColumn::DateTime/);
9
10 __PACKAGE__->table('event');
11
12 __PACKAGE__->add_columns(
13   id => { data_type => 'integer', is_auto_increment => 1 },
14   starts_at => { data_type => 'datetime', timezone => "America/Chicago", locale => 'de_DE' },
15   created_on => { data_type => 'timestamp with time zone', timezone => "America/Chicago" },
16   ts_without_tz => { data_type => 'timestamp without time zone' },
17 );
18
19 __PACKAGE__->set_primary_key('id');
20
21 sub _datetime_parser {
22   require DateTime::Format::Pg;
23   DateTime::Format::Pg->new();
24 }
25
26 # this is for a reentrancy test, the duplication from above is intentional
27 __PACKAGE__->add_columns(
28   ts_without_tz => { data_type => 'timestamp without time zone', inflate_datetime => 1 },
29 );
30
31 1;