From: Daniel Westermann-Clark Date: Sat, 8 Apr 2006 19:21:23 +0000 (-0400) Subject: Add unique constraint at mst's suggestion; find only works on unique constraints X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=92b0ca0ff813da38fdb64a1f61580b29c2f54b1a;p=dbsrgits%2FDBIx-Class-Historic.git Add unique constraint at mst's suggestion; find only works on unique constraints --- diff --git a/t/lib/DBICTest/Schema/Employee.pm b/t/lib/DBICTest/Schema/Employee.pm index 63b6209..234d073 100644 --- a/t/lib/DBICTest/Schema/Employee.pm +++ b/t/lib/DBICTest/Schema/Employee.pm @@ -29,6 +29,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key('employee_id'); __PACKAGE__->position_column('position'); +__PACKAGE__->add_unique_constraint(position_group => [ qw/position group_id/ ]); + __PACKAGE__->mk_classdata('field_name_for', { employee_id => 'primary key', position => 'list position',