projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Rewrite GenericSubQ from SQLA::L to be actually useful
[dbsrgits/DBIx-Class.git]
/
t
/
lib
/
DBICTest
/
Schema
/
BooksInLibrary.pm
diff --git
a/t/lib/DBICTest/Schema/BooksInLibrary.pm
b/t/lib/DBICTest/Schema/BooksInLibrary.pm
index
8da54e6
..
24d5657
100644
(file)
--- 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' );