X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FCD.pm;h=8e04c16f8b4cd93b544742e33883eea280c21b2f;hb=0009fa4905ab7f4585c4b470bfe049666bce8e17;hp=35b8acd249df39683acd165ce7cb9e5f22f3cad4;hpb=a14d1055a6377d400f6bdfdcec2b4b605d003584;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/CD.pm b/t/lib/DBICTest/Schema/CD.pm index 35b8acd..8e04c16 100644 --- a/t/lib/DBICTest/Schema/CD.pm +++ b/t/lib/DBICTest/Schema/CD.pm @@ -3,7 +3,21 @@ package DBICTest::Schema::CD; use base 'DBIx::Class::Core'; 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', + }, + 'year' => { + data_type => 'varchar', + }, +); DBICTest::Schema::CD->set_primary_key('cdid'); DBICTest::Schema::CD->add_unique_constraint(artist_title => [ qw/artist title/ ]);