X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FLinerNotes.pm;h=5675f5231490085e316ed9dfe43d716276b2c2b5;hb=494674a52f9976f723d838cdfa96ab9b394b1c6e;hp=b8413329f0f834f58c7ba4d52807807402b2403e;hpb=a02675cd9a11e1f354220319da9f5d573a2e484a;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/LinerNotes.pm b/t/lib/DBICTest/Schema/LinerNotes.pm index b841332..5675f52 100644 --- a/t/lib/DBICTest/Schema/LinerNotes.pm +++ b/t/lib/DBICTest/Schema/LinerNotes.pm @@ -1,9 +1,21 @@ -package DBICTest::LinerNotes; +package # hide from PAUSE + DBICTest::Schema::LinerNotes; -use base qw/DBIx::Class::Core/; +use base qw/DBICTest::BaseResult/; -DBICTest::LinerNotes->table('liner_notes'); -DBICTest::LinerNotes->add_columns(qw/liner_id notes/); -DBICTest::LinerNotes->set_primary_key('liner_id'); +__PACKAGE__->table('liner_notes'); +__PACKAGE__->add_columns( + 'liner_id' => { + data_type => 'integer', + }, + 'notes' => { + data_type => 'varchar', + size => 100, + }, +); +__PACKAGE__->set_primary_key('liner_id'); +__PACKAGE__->belongs_to( + 'cd', 'DBICTest::Schema::CD', 'liner_id' +); 1;