Force on_delete/on_update arguments to upper case for consistency with the rest of...
Peter Rabbitson [Mon, 25 Aug 2008 09:19:10 +0000 (09:19 +0000)]
lib/SQL/Translator/Parser/DBIx/Class.pm

index ce6e7e3..d4499aa 100644 (file)
@@ -198,8 +198,8 @@ sub parse {
                                     fields           => \@keys,
                                     reference_fields => \@refkeys,
                                     reference_table  => $rel_table,
-                                    on_delete        => $cascade->{delete},
-                                    on_update        => $cascade->{update},
+                                    on_delete        => uc ($cascade->{delete} || ''),
+                                    on_update        => uc ($cascade->{update} || ''),
                                     (defined $is_deferrable ? ( deferrable => $is_deferrable ) : ()),
                   );