Sybase autopk, and a test, no limit support yet
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / FourKeys_to_TwoKeys.pm
CommitLineData
3bd6e3e0 1package # hide from PAUSE
2 DBICTest::Schema::FourKeys_to_TwoKeys;
3
660cf1be 4use base qw/DBICTest::BaseResult/;
3bd6e3e0 5
6__PACKAGE__->table('fourkeys_to_twokeys');
7__PACKAGE__->add_columns(
8 'f_foo' => { data_type => 'integer' },
9 'f_bar' => { data_type => 'integer' },
10 'f_hello' => { data_type => 'integer' },
11 'f_goodbye' => { data_type => 'integer' },
12 't_artist' => { data_type => 'integer' },
13 't_cd' => { data_type => 'integer' },
14 'autopilot' => { data_type => 'character' },
15);
16__PACKAGE__->set_primary_key(
17 qw/f_foo f_bar f_hello f_goodbye t_artist t_cd/
18);
19
20__PACKAGE__->belongs_to('fourkeys', 'DBICTest::Schema::FourKeys', {
21 'foreign.foo' => 'self.f_foo',
22 'foreign.bar' => 'self.f_bar',
23 'foreign.hello' => 'self.f_hello',
24 'foreign.goodbye' => 'self.f_goodbye',
25});
26
27__PACKAGE__->belongs_to('twokeys', 'DBICTest::Schema::TwoKeys', {
28 'foreign.artist' => 'self.t_artist',
29 'foreign.cd' => 'self.t_cd',
30});
31
321;