projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add unique constraint declaration and new ResultSet method, update_or_create
[dbsrgits/DBIx-Class.git]
/
t
/
lib
/
DBICTest
/
Schema
/
CD.pm
diff --git
a/t/lib/DBICTest/Schema/CD.pm
b/t/lib/DBICTest/Schema/CD.pm
index
512d8a1
..
35b8acd
100644
(file)
--- a/
t/lib/DBICTest/Schema/CD.pm
+++ b/
t/lib/DBICTest/Schema/CD.pm
@@
-5,5
+5,6
@@
use base 'DBIx::Class::Core';
DBICTest::Schema::CD->table('cd');
DBICTest::Schema::CD->add_columns(qw/cdid artist title year/);
DBICTest::Schema::CD->set_primary_key('cdid');
+DBICTest::Schema::CD->add_unique_constraint(artist_title => [ qw/artist title/ ]);
1;