X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FBooksInLibrary.pm;h=24d5657f83c81a16e223cf8f5dee383be6b72b5e;hp=8da54e623caed6753ca924c3ab60fcf04c2aab32;hb=75f025cf247e75869dcdfe46b37e24d4e0b15e8b;hpb=7ad315356c82a425365b88b6146617485897a4a0 diff --git a/t/lib/DBICTest/Schema/BooksInLibrary.pm b/t/lib/DBICTest/Schema/BooksInLibrary.pm index 8da54e6..24d5657 100644 --- a/t/lib/DBICTest/Schema/BooksInLibrary.pm +++ b/t/lib/DBICTest/Schema/BooksInLibrary.pm @@ -27,6 +27,8 @@ __PACKAGE__->add_columns( ); __PACKAGE__->set_primary_key('id'); +__PACKAGE__->add_unique_constraint (['title']); + __PACKAGE__->resultset_attributes({where => { source => "Library" } }); __PACKAGE__->belongs_to ( owner => 'DBICTest::Schema::Owners', 'owner' );