X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FCD.pm;h=90e4c0cb74a7c23d222a07f4345121e93bb10568;hb=a733c37fdebe9bb9ef6e56003e986717e23383d1;hp=35b8acd249df39683acd165ce7cb9e5f22f3cad4;hpb=87f0da6afff9adc776942e2cbd04d2b2cbaa1473;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/CD.pm b/t/lib/DBICTest/Schema/CD.pm index 35b8acd..90e4c0c 100644 --- a/t/lib/DBICTest/Schema/CD.pm +++ b/t/lib/DBICTest/Schema/CD.pm @@ -1,9 +1,28 @@ -package DBICTest::Schema::CD; +package # hide from PAUSE + DBICTest::Schema::CD; use base 'DBIx::Class::Core'; +__PACKAGE__->load_components('PK::Auto'); + DBICTest::Schema::CD->table('cd'); -DBICTest::Schema::CD->add_columns(qw/cdid artist title year/); +DBICTest::Schema::CD->add_columns( + 'cdid' => { + data_type => 'integer', + is_auto_increment => 1, + }, + 'artist' => { + data_type => 'integer', + }, + 'title' => { + data_type => 'varchar', + size => 100, + }, + 'year' => { + data_type => 'varchar', + size => 100, + }, +); DBICTest::Schema::CD->set_primary_key('cdid'); DBICTest::Schema::CD->add_unique_constraint(artist_title => [ qw/artist title/ ]);