X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FTag.pm;h=b93b622aa7a848c3a0f0531cfc8e0013ec299b51;hb=200e1aebe2f8d1be34fc4597c5e549ebe5f6e54d;hp=0a303d6b40efbd5dc090035505320386793a6a94;hpb=0009fa4905ab7f4585c4b470bfe049666bce8e17;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/Tag.pm b/t/lib/DBICTest/Schema/Tag.pm index 0a303d6..b93b622 100644 --- a/t/lib/DBICTest/Schema/Tag.pm +++ b/t/lib/DBICTest/Schema/Tag.pm @@ -1,18 +1,22 @@ -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( 'tagid' => { - data_type => 'varchar', + data_type => 'integer', is_auto_increment => 1, }, 'cd' => { data_type => 'integer', }, 'tag' => { - data_type => 'varchar' + data_type => 'varchar', + size => 100, }, ); DBICTest::Schema::Tag->set_primary_key('tagid');