X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FWithSqltDeployMethod.pm;fp=lib%2FDBIx%2FClass%2FDeploymentHandler%2FWithSqltDeployMethod.pm;h=8b3f5cc11cb683d5e9480a33ef3e845de749a401;hb=73caa630f1795abc83d57c6b08becc8395215e94;hp=62e854b4db47671812103e023014c261471d77ca;hpb=ed45e175a490befb264f8d20f3e5702b6b0b22aa;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm b/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm index 62e854b..8b3f5cc 100644 --- a/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm +++ b/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm @@ -34,12 +34,15 @@ has sqltargs => ( sub _build_deploy_method { my $self = shift; - DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator->new({ + my $args = { schema => $self->schema, databases => $self->databases, upgrade_directory => $self->upgrade_directory, sqltargs => $self->sqltargs, - }); + }; + + $args->{schema_version} = $self->schema_version if $self->has_schema_version; + DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator->new($args); } 1; @@ -47,3 +50,5 @@ sub _build_deploy_method { # vim: ts=2 sw=2 expandtab __END__ + +TODO: pod