Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / FourKeys_to_TwoKeys.pm
CommitLineData
8273e845 1package # hide from PAUSE
3bd6e3e0 2 DBICTest::Schema::FourKeys_to_TwoKeys;
3
4a233f30 4use warnings;
5use strict;
6
660cf1be 7use base qw/DBICTest::BaseResult/;
3bd6e3e0 8
9__PACKAGE__->table('fourkeys_to_twokeys');
10__PACKAGE__->add_columns(
11 'f_foo' => { data_type => 'integer' },
12 'f_bar' => { data_type => 'integer' },
13 'f_hello' => { data_type => 'integer' },
14 'f_goodbye' => { data_type => 'integer' },
15 't_artist' => { data_type => 'integer' },
16 't_cd' => { data_type => 'integer' },
17 'autopilot' => { data_type => 'character' },
ff1234ad 18 'pilot_sequence' => { data_type => 'integer', is_nullable => 1 },
3bd6e3e0 19);
20__PACKAGE__->set_primary_key(
21 qw/f_foo f_bar f_hello f_goodbye t_artist t_cd/
22);
23
24__PACKAGE__->belongs_to('fourkeys', 'DBICTest::Schema::FourKeys', {
25 'foreign.foo' => 'self.f_foo',
26 'foreign.bar' => 'self.f_bar',
27 'foreign.hello' => 'self.f_hello',
28 'foreign.goodbye' => 'self.f_goodbye',
29});
30
31__PACKAGE__->belongs_to('twokeys', 'DBICTest::Schema::TwoKeys', {
32 'foreign.artist' => 'self.t_artist',
33 'foreign.cd' => 'self.t_cd',
34});
35
361;