Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Tag.pm
1 package # hide from PAUSE
2     DBICTest::Schema::Tag;
3
4 use warnings;
5 use strict;
6
7 use base qw/DBICTest::BaseResult/;
8
9 __PACKAGE__->table('tags');
10 __PACKAGE__->add_columns(
11   'tagid' => {
12     data_type => 'integer',
13     is_auto_increment => 1,
14   },
15   'cd' => {
16     data_type => 'integer',
17   },
18   'tag' => {
19     data_type => 'varchar',
20     size      => 100,
21   },
22 );
23 __PACKAGE__->set_primary_key('tagid');
24
25 __PACKAGE__->add_unique_constraints(  # do not remove, part of a test
26   tagid_cd     => [qw/ tagid cd /],
27   tagid_cd_tag => [qw/ tagid cd tag /],
28 );
29 __PACKAGE__->add_unique_constraints(  # do not remove, part of a test
30   [qw/ tagid tag /],
31   [qw/ tagid tag cd /],
32 );
33
34 __PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD', 'cd', {
35   proxy => [ 'year', { cd_title => 'title' } ],
36 });
37
38 1;