From: Justin Hunter Date: Thu, 9 Jul 2009 21:45:07 +0000 (-0700) Subject: remove redundant required => 0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8a477e909e43d3b399939e6e9095a3b84894107d;p=dbsrgits%2FSQL-Translator-2.0-ish.git remove redundant required => 0 --- diff --git a/lib/SQL/Translator/Object/Column.pm b/lib/SQL/Translator/Object/Column.pm index b323dff..16e0a86 100644 --- a/lib/SQL/Translator/Object/Column.pm +++ b/lib/SQL/Translator/Object/Column.pm @@ -40,19 +40,16 @@ has 'is_auto_increment' => ( has 'default_value' => ( is => 'rw', isa => Maybe[Str], - required => 0 ); has 'remarks' => ( is => 'rw', isa => Maybe[Str], - required => 0 ); has 'trigger' => ( is => 'rw', isa => Trigger, - required => 0 ); __PACKAGE__->meta->make_immutable; diff --git a/lib/SQL/Translator/Object/Index.pm b/lib/SQL/Translator/Object/Index.pm index 9828ce0..11a4706 100644 --- a/lib/SQL/Translator/Object/Index.pm +++ b/lib/SQL/Translator/Object/Index.pm @@ -30,7 +30,6 @@ has 'columns' => ( } }, default => sub { {} }, - required => 0 ); has 'type' => ( diff --git a/lib/SQL/Translator/Object/Procedure.pm b/lib/SQL/Translator/Object/Procedure.pm index 8f781a4..fd6fed9 100644 --- a/lib/SQL/Translator/Object/Procedure.pm +++ b/lib/SQL/Translator/Object/Procedure.pm @@ -29,7 +29,6 @@ has 'parameters' => ( get => 'get_parameter', set => 'set_parameter', }, - required => 0 ); has 'owner' => ( @@ -41,7 +40,6 @@ has 'owner' => ( has 'comments' => ( is => 'rw', isa => Str, - required => 0 ); has 'schema' => ( diff --git a/lib/SQL/Translator/Object/Schema.pm b/lib/SQL/Translator/Object/Schema.pm index 6d3487c..7498454 100644 --- a/lib/SQL/Translator/Object/Schema.pm +++ b/lib/SQL/Translator/Object/Schema.pm @@ -31,7 +31,6 @@ has 'tables' => ( } }, default => sub { {} }, - required => 0 ); has 'views' => ( @@ -52,7 +51,6 @@ has 'views' => ( } }, default => sub { {} }, - required => 0 ); has 'procedures' => ( @@ -73,7 +71,6 @@ has 'procedures' => ( } }, default => sub { {} }, - required => 0 ); __PACKAGE__->meta->make_immutable; diff --git a/lib/SQL/Translator/Object/Table.pm b/lib/SQL/Translator/Object/Table.pm index 1f1d010..c038874 100644 --- a/lib/SQL/Translator/Object/Table.pm +++ b/lib/SQL/Translator/Object/Table.pm @@ -31,7 +31,6 @@ has 'columns' => ( } }, default => sub { {} }, - required => 0 ); has 'indexes' => ( @@ -52,7 +51,6 @@ has 'indexes' => ( } }, default => sub { {} }, - required => 0 ); has 'constraints' => ( @@ -73,7 +71,6 @@ has 'constraints' => ( } }, default => sub { {} }, - required => 0 ); has 'sequences' => ( @@ -94,7 +91,6 @@ has 'sequences' => ( } }, default => sub { {} }, - required => 0 ); __PACKAGE__->meta->make_immutable; diff --git a/lib/SQL/Translator/Object/View.pm b/lib/SQL/Translator/Object/View.pm index 414abd6..feffecf 100644 --- a/lib/SQL/Translator/Object/View.pm +++ b/lib/SQL/Translator/Object/View.pm @@ -30,7 +30,6 @@ has 'columns' => ( } }, default => sub { {} }, - required => 0 ); has 'sql' => (