projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Added support for unique constraints to SQLT::Parser::DBIx::Class
[dbsrgits/DBIx-Class.git]
/
t
/
lib
/
DBICTest
/
Schema
/
TwoKeyTreeLike.pm
diff --git
a/t/lib/DBICTest/Schema/TwoKeyTreeLike.pm
b/t/lib/DBICTest/Schema/TwoKeyTreeLike.pm
index
9547baf
..
c7258e0
100644
(file)
--- a/
t/lib/DBICTest/Schema/TwoKeyTreeLike.pm
+++ b/
t/lib/DBICTest/Schema/TwoKeyTreeLike.pm
@@
-16,6
+16,7
@@
__PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key(qw/id1 id2/);
+__PACKAGE__->add_unique_constraint('tktlnameunique' => ['name']);
__PACKAGE__->belongs_to('parent', 'TwoKeyTreeLike',
{ 'foreign.id1' => 'self.parent1', 'foreign.id2' => 'self.parent2'});