Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / TwoKeyTreeLike.pm
1 package # hide from PAUSE
2     DBICTest::Schema::TwoKeyTreeLike;
3
4 use warnings;
5 use strict;
6
7 use base qw/DBICTest::BaseResult/;
8
9 __PACKAGE__->table('twokeytreelike');
10 __PACKAGE__->add_columns(
11   'id1' => { data_type => 'integer' },
12   'id2' => { data_type => 'integer' },
13   'parent1' => { data_type => 'integer' },
14   'parent2' => { data_type => 'integer' },
15   'name' => { data_type => 'varchar',
16     size      => 100,
17  },
18 );
19 __PACKAGE__->set_primary_key(qw/id1 id2/);
20 __PACKAGE__->add_unique_constraint('tktlnameunique' => ['name']);
21 __PACKAGE__->belongs_to('parent', 'DBICTest::Schema::TwoKeyTreeLike',
22                           { 'foreign.id1' => 'self.parent1', 'foreign.id2' => 'self.parent2'});
23
24 1;