From: Justin Hunter Date: Thu, 2 Jul 2009 07:45:15 +0000 (-0700) Subject: remove comments X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=359923d0dce9853d6e05709cec91df87d678bedc;p=dbsrgits%2FSQL-Translator-2.0-ish.git remove comments --- diff --git a/lib/SQL/Translator/Object/Column.pm b/lib/SQL/Translator/Object/Column.pm index dd659a3..89d6ceb 100644 --- a/lib/SQL/Translator/Object/Column.pm +++ b/lib/SQL/Translator/Object/Column.pm @@ -42,14 +42,6 @@ has 'default_value' => ( required => 0 ); -=cut -has 'index' => ( - is => 'rw', - isa => Maybe[Int], - required => 1 -); -=cut - has 'remarks' => ( is => 'rw', isa => Maybe[Str], diff --git a/lib/SQL/Translator/Object/Index.pm b/lib/SQL/Translator/Object/Index.pm index 57358cf..e65624d 100644 --- a/lib/SQL/Translator/Object/Index.pm +++ b/lib/SQL/Translator/Object/Index.pm @@ -19,7 +19,6 @@ has 'columns' => ( exists => 'exists_column', keys => 'column_ids', get => 'get_column', -# set => 'set_column', }, curries => { set => { add_column => sub { my ($self, $body, $column) = @_; $self->$body($column->name, $column); } } }, default => sub { {} }, diff --git a/lib/SQL/Translator/Object/Schema.pm b/lib/SQL/Translator/Object/Schema.pm index 1d688fe..3062a02 100644 --- a/lib/SQL/Translator/Object/Schema.pm +++ b/lib/SQL/Translator/Object/Schema.pm @@ -20,7 +20,6 @@ has 'tables' => ( exists => 'exists_table', keys => 'table_ids', get => 'get_table', -# set => 'add_table', }, curries => { set => { add_table => sub { my ($self, $body, $table) = @_; $self->$body($table->name, $table); } } }, default => sub { {} }, @@ -35,7 +34,6 @@ has 'views' => ( exists => 'exists_view', keys => 'view_ids', get => 'get_view', -# set => 'set_view', }, curries => { set => { add_view => sub { my ($self, $body, $view) = @_; $self->$body($view->name, $view); } } }, default => sub { {} }, @@ -50,8 +48,8 @@ has 'procedures' => ( exists => 'exists_procedure', keys => 'procedure_ids', get => 'get_procedure', - set => 'set_procedure', }, + curries => { set => { add_procedure => sub { my ($self, $body, $procedure) = @_; $self->$body($procedure->name, $procedure); } } }, default => sub { {} }, required => 0 ); diff --git a/lib/SQL/Translator/Object/Table.pm b/lib/SQL/Translator/Object/Table.pm index 6f64961..763fa02 100644 --- a/lib/SQL/Translator/Object/Table.pm +++ b/lib/SQL/Translator/Object/Table.pm @@ -20,7 +20,6 @@ has 'columns' => ( exists => 'exists_column', keys => 'column_ids', get => 'get_column', -# set => 'set_column', }, curries => { set => { add_column => sub { my ($self, $body, $column) = @_; $self->$body($column->name, $column); } } }, default => sub { {} }, @@ -35,7 +34,6 @@ has 'indexes' => ( exists => 'exists_index', keys => 'index_ids', get => 'get_index', -# set => 'set_index', }, curries => { set => { add_index => sub { my ($self, $body, $index) = @_; $self->$body($index->name, $index); } } }, default => sub { {} }, @@ -50,20 +48,12 @@ has 'constraints' => ( exists => 'exists_constraint', keys => 'constraint_ids', get => 'get_constraint', - set => 'set_constraint', }, + curries => { set => { add_constraint => sub { my ($self, $body, $constraint) = @_; $self->$body($constraint->name, $constraint); } } }, default => sub { {} }, required => 0 ); -=cut -has 'schema' => ( - is => 'rw', - isa => Schema, - required => 0, - default => sub { SQL::Translator::Object::Schema->new } -); -=cut no Moose; __PACKAGE__->meta()->make_immutable;