Force on_delete/on_update arguments to upper case for consistency with the rest of...
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / CD.pm
index 262d23f..f44db21 100644 (file)
@@ -22,9 +22,13 @@ __PACKAGE__->add_columns(
   },
 );
 __PACKAGE__->set_primary_key('cdid');
-__PACKAGE__->add_unique_constraint(artist_title => [ qw/artist title/ ]);
+__PACKAGE__->add_unique_constraint([ qw/artist title/ ]);
 
-__PACKAGE__->belongs_to( artist => 'DBICTest::Schema::Artist' );
+__PACKAGE__->belongs_to( artist => 'DBICTest::Schema::Artist', undef, { 
+    is_deferrable => 1, 
+    on_delete => undef,
+    on_update => 'SET NULL',
+});
 
 __PACKAGE__->has_many( tracks => 'DBICTest::Schema::Track' );
 __PACKAGE__->has_many(