From: Justin Hunter Date: Sat, 3 Oct 2009 23:27:50 +0000 (-0700) Subject: make "" the default for constraint name X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=70ab6d8c81ee8febae6fe25b4334a3fd2e670b94;p=dbsrgits%2FSQL-Translator-2.0-ish.git make "" the default for constraint name --- diff --git a/lib/SQL/Translator/Object/Constraint.pm b/lib/SQL/Translator/Object/Constraint.pm index d3ea621..2badd90 100644 --- a/lib/SQL/Translator/Object/Constraint.pm +++ b/lib/SQL/Translator/Object/Constraint.pm @@ -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 );