X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FDeployMethod%2FSQL%2FTranslator.pm;h=5f6d7c5c227d96f2976cb4f395cbef34d44d8d03;hb=feca70da2cc034f1209e6990b25f15f4b723930d;hp=101ae2ea717a4a14375787a4664f89e7c57309ca;hpb=73caa630f1795abc83d57c6b08becc8395215e94;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index 101ae2e..5f6d7c5 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -36,7 +36,7 @@ method _build_storage { $s } -has sqltargs => ( +has sql_translator_args => ( isa => 'HashRef', is => 'ro', default => sub { {} }, @@ -200,7 +200,7 @@ sub deploy { sub _prepare_install { my $self = shift; - my $sqltargs = { %{$self->sqltargs}, %{shift @_} }; + my $sqltargs = { %{$self->sql_translator_args}, %{shift @_} }; my $to_file = shift; my $schema = $self->schema; my $databases = $self->databases; @@ -296,7 +296,7 @@ method _prepare_changegrade($from_version, $to_version, $version_set, $direction my $schema = $self->schema; my $databases = $self->databases; my $dir = $self->upgrade_directory; - my $sqltargs = $self->sqltargs; + my $sqltargs = $self->sql_translator_args; my $schema_version = $self->schema_version; @@ -545,10 +545,9 @@ and generate the DDL. The L that is I used to talk to the database and generate the DDL. This is automatically created with L. -=attr sqltargs +=attr sql_translator_args -TODO -# rename +The arguments that get passed to L when it's used. =attr upgrade_directory