X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FArtist.pm;h=62bd9468b4a1c361002655e544de96166e59702e;hb=84f7e8a1c6303091d753572648e37d3bd7270181;hp=dd5028efd3dd60c97fe2b0093053425069529347;hpb=62d4dbae26097a2343db24eb52722e91372c355a;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Artist.pm b/t/lib/DBICTest/Schema/Artist.pm index dd5028e..62bd946 100644 --- a/t/lib/DBICTest/Schema/Artist.pm +++ b/t/lib/DBICTest/Schema/Artist.pm @@ -30,8 +30,10 @@ __PACKAGE__->add_columns( }, ); __PACKAGE__->set_primary_key('artistid'); +__PACKAGE__->add_unique_constraint(['name']); __PACKAGE__->add_unique_constraint(artist => ['artistid']); # do not remove, part of a test + __PACKAGE__->mk_classdata('field_name_for', { artistid => 'primary key', name => 'artist name', @@ -39,7 +41,7 @@ __PACKAGE__->mk_classdata('field_name_for', { __PACKAGE__->has_many( cds => 'DBICTest::Schema::CD', undef, - { order_by => 'year' }, + { order_by => { -asc => 'year'} }, ); __PACKAGE__->has_many( cds_unordered => 'DBICTest::Schema::CD'