make "" the default for constraint name
Justin Hunter [Sat, 3 Oct 2009 23:27:50 +0000 (16:27 -0700)]
lib/SQL/Translator/Object/Constraint.pm

index d3ea621..2badd90 100644 (file)
@@ -12,7 +12,8 @@ class SQL::Translator::Object::Constraint extends SQL::Translator::Object {
     
     has 'name' => (
         is => 'rw',
-        isa => Maybe[Str],
+        isa => Str,
+        default => '',
         required => 1
     );