X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FOwners.pm;h=0df64a8ce5fe8812ce6414040e3902ff10714a81;hb=bad0b73b680b041ca8ce677365ca1f6387232e61;hp=7b021e6876b72e450b8341b4d8a4fc3222905f3c;hpb=8273e845426f0187b4ad6c4a1b42286fa09a648f;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Owners.pm b/t/lib/DBICTest/Schema/Owners.pm index 7b021e6..0df64a8 100644 --- a/t/lib/DBICTest/Schema/Owners.pm +++ b/t/lib/DBICTest/Schema/Owners.pm @@ -1,6 +1,9 @@ package # hide from PAUSE DBICTest::Schema::Owners; +use warnings; +use strict; + use base qw/DBICTest::BaseResult/; __PACKAGE__->table('owners'); @@ -16,6 +19,8 @@ __PACKAGE__->add_columns( ); __PACKAGE__->set_primary_key('id'); +__PACKAGE__->add_unique_constraint(['name']); + __PACKAGE__->has_many(books => "DBICTest::Schema::BooksInLibrary", "owner"); 1;