X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FTwoKeys.pm;h=91a6fefa3cd00aa51f618a29ca0f79917b104c10;hb=dc66dea1f99a1792a6dcf2027988966e78aa5923;hp=12943b80add0a0ce40d7876cdc36b45500f04c00;hpb=a02675cd9a11e1f354220319da9f5d573a2e484a;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/TwoKeys.pm b/t/lib/DBICTest/Schema/TwoKeys.pm index 12943b8..91a6fef 100755 --- a/t/lib/DBICTest/Schema/TwoKeys.pm +++ b/t/lib/DBICTest/Schema/TwoKeys.pm @@ -1,17 +1,13 @@ -package DBICTest::TwoKeys; +package # hide from PAUSE + DBICTest::Schema::TwoKeys; use base 'DBIx::Class::Core'; -DBICTest::TwoKeys->table('twokeys'); -DBICTest::TwoKeys->add_columns(qw/artist cd/); -DBICTest::TwoKeys->set_primary_key(qw/artist cd/); -DBICTest::TwoKeys->add_relationship( - artist => 'DBICTest::Artist', - { 'foreign.artistid' => 'self.artist' } -); -DBICTest::TwoKeys->add_relationship( - cd => 'DBICTest::CD', - { 'foreign.cdid' => 'self.cd' } +DBICTest::Schema::TwoKeys->table('twokeys'); +DBICTest::Schema::TwoKeys->add_columns( + 'artist' => { data_type => 'integer' }, + 'cd' => { data_type => 'integer' }, ); +DBICTest::Schema::TwoKeys->set_primary_key(qw/artist cd/); 1;