Add unique constraint at mst's suggestion; find only works on unique constraints
Daniel Westermann-Clark [Sat, 8 Apr 2006 19:21:23 +0000 (15:21 -0400)]
t/lib/DBICTest/Schema/Employee.pm

index 63b6209..234d073 100644 (file)
@@ -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',