X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FFourKeys.pm;h=dc48b2b28b737df38ced529b638df6f0f78ec41b;hb=0077982b2edc8273ab4b6ea59921177667008cb3;hp=6038c9406ecb359916ad6fdcdfbf6af5d9a7ea9e;hpb=11357d09a80364da23aefbb5650da15a768505a8;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/FourKeys.pm b/t/lib/DBICTest/Schema/FourKeys.pm index 6038c94..dc48b2b 100644 --- a/t/lib/DBICTest/Schema/FourKeys.pm +++ b/t/lib/DBICTest/Schema/FourKeys.pm @@ -1,7 +1,10 @@ -package # hide from PAUSE +package # hide from PAUSE DBICTest::Schema::FourKeys; -use base 'DBIx::Class::Core'; +use warnings; +use strict; + +use base qw/DBICTest::BaseResult/; __PACKAGE__->table('fourkeys'); __PACKAGE__->add_columns( @@ -9,12 +12,13 @@ __PACKAGE__->add_columns( 'bar' => { data_type => 'integer' }, 'hello' => { data_type => 'integer' }, 'goodbye' => { data_type => 'integer' }, - 'sensors' => { data_type => 'character' }, + 'sensors' => { data_type => 'character', size => 10 }, + 'read_count' => { data_type => 'int', is_nullable => 1 }, ); __PACKAGE__->set_primary_key(qw/foo bar hello goodbye/); __PACKAGE__->has_many( - 'fourkeys_to_twokeys', '__PACKAGE___to_TwoKeys', { + 'fourkeys_to_twokeys', 'DBICTest::Schema::FourKeys_to_TwoKeys', { 'foreign.f_foo' => 'self.foo', 'foreign.f_bar' => 'self.bar', 'foreign.f_hello' => 'self.hello',