X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FTag.pm;h=796616e8788f1f2c91e017101efe59c0c9871fc0;hb=494674a52f9976f723d838cdfa96ab9b394b1c6e;hp=4a3c4d2a5597f8fbd66f1636c1a75ff33e2731ff;hpb=11b78bd6f6d77f58d9c5ae301e94ca57e892f592;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/Tag.pm b/t/lib/DBICTest/Schema/Tag.pm index 4a3c4d2..796616e 100644 --- a/t/lib/DBICTest/Schema/Tag.pm +++ b/t/lib/DBICTest/Schema/Tag.pm @@ -1,13 +1,24 @@ -package DBICTest::Schema::Tag; +package # hide from PAUSE + DBICTest::Schema::Tag; -use base qw/DBIx::Class::Core/; +use base qw/DBICTest::BaseResult/; -DBICTest::Schema::Tag->table('tags'); -DBICTest::Schema::Tag->add_columns(qw/tagid cd tag/); -DBICTest::Schema::Tag->set_primary_key('tagid'); -DBICTest::Schema::Tag->add_relationship( - cd => 'DBICTest::Schema::CD', - { 'foreign.cdid' => 'self.cd' } +__PACKAGE__->table('tags'); +__PACKAGE__->add_columns( + 'tagid' => { + data_type => 'integer', + is_auto_increment => 1, + }, + 'cd' => { + data_type => 'integer', + }, + 'tag' => { + data_type => 'varchar', + size => 100, + }, ); +__PACKAGE__->set_primary_key('tagid'); + +__PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD' ); 1;