X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FTag.pm;h=b75c2efa5a316872385e426655e62f46c35f22f3;hb=b818fc5dc8552b93b5b723ebff87b804b662d3dd;hp=5b4eb208204471d60debb5026a63dd10fa6ec23e;hpb=333cce60480be0ebce201d37e2bfb18601b54404;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Tag.pm b/t/lib/DBICTest/Schema/Tag.pm index 5b4eb20..b75c2ef 100644 --- a/t/lib/DBICTest/Schema/Tag.pm +++ b/t/lib/DBICTest/Schema/Tag.pm @@ -1,11 +1,10 @@ -package DBICTest::Schema::Tag; +package # hide from PAUSE + DBICTest::Schema::Tag; use base qw/DBIx::Class::Core/; -__PACKAGE__->load_components('PK::Auto'); - -DBICTest::Schema::Tag->table('tags'); -DBICTest::Schema::Tag->add_columns( +__PACKAGE__->table('tags'); +__PACKAGE__->add_columns( 'tagid' => { data_type => 'integer', is_auto_increment => 1, @@ -14,9 +13,12 @@ DBICTest::Schema::Tag->add_columns( data_type => 'integer', }, 'tag' => { - data_type => 'varchar' + data_type => 'varchar', + size => 100, }, ); -DBICTest::Schema::Tag->set_primary_key('tagid'); +__PACKAGE__->set_primary_key('tagid'); + +__PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD' ); 1;