X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FLyricVersion.pm;h=93538a8569f4b18beba87017ee87db85392ab5a0;hb=6e22e629bb00f5c721a6fbec0017596c1e28dde3;hp=2a409ab3167939201cb6d4f6e1a1c296b76876eb;hpb=660cf1be74795a5a5784f413741816413a724c1a;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/LyricVersion.pm b/t/lib/DBICTest/Schema/LyricVersion.pm index 2a409ab..93538a8 100644 --- a/t/lib/DBICTest/Schema/LyricVersion.pm +++ b/t/lib/DBICTest/Schema/LyricVersion.pm @@ -1,6 +1,9 @@ package # hide from PAUSE DBICTest::Schema::LyricVersion; +use warnings; +use strict; + use base qw/DBICTest::BaseResult/; __PACKAGE__->table('lyric_versions'); @@ -19,6 +22,7 @@ __PACKAGE__->add_columns( }, ); __PACKAGE__->set_primary_key('id'); +__PACKAGE__->add_unique_constraint ([qw/lyric_id text/]); __PACKAGE__->belongs_to('lyric', 'DBICTest::Schema::Lyrics', 'lyric_id'); 1;