X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FLinerNotes.pm;h=6c75f252a8beca55d5b2433e9b4747eb48313bde;hb=4a233f3019d2baa4bf2abee0c873c74d5cdf3a11;hp=013cf91193889cc0265ae78527f1f2c909360b33;hpb=cb561d1a7f53ab9a2e505d86c64cfc6977b4db78;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/LinerNotes.pm b/t/lib/DBICTest/Schema/LinerNotes.pm index 013cf91..6c75f25 100644 --- a/t/lib/DBICTest/Schema/LinerNotes.pm +++ b/t/lib/DBICTest/Schema/LinerNotes.pm @@ -1,10 +1,13 @@ -package # hide from PAUSE +package # hide from PAUSE DBICTest::Schema::LinerNotes; -use base qw/DBIx::Class::Core/; +use warnings; +use strict; -DBICTest::Schema::LinerNotes->table('liner_notes'); -DBICTest::Schema::LinerNotes->add_columns( +use base qw/DBICTest::BaseResult/; + +__PACKAGE__->table('liner_notes'); +__PACKAGE__->add_columns( 'liner_id' => { data_type => 'integer', }, @@ -13,6 +16,9 @@ DBICTest::Schema::LinerNotes->add_columns( size => 100, }, ); -DBICTest::Schema::LinerNotes->set_primary_key('liner_id'); +__PACKAGE__->set_primary_key('liner_id'); +__PACKAGE__->belongs_to( + 'cd', 'DBICTest::Schema::CD', 'liner_id' +); 1;