X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FOwners.pm;h=0df64a8ce5fe8812ce6414040e3902ff10714a81;hb=4a233f3019d2baa4bf2abee0c873c74d5cdf3a11;hp=70af33c60bec9c61d6e24d123b5e502e93cb5198;hpb=bed3a173167f330281c09277bac5a0816f81b3f8;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Owners.pm b/t/lib/DBICTest/Schema/Owners.pm index 70af33c..0df64a8 100644 --- a/t/lib/DBICTest/Schema/Owners.pm +++ b/t/lib/DBICTest/Schema/Owners.pm @@ -1,6 +1,9 @@ -package # hide from PAUSE +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;