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=b0bf914fbea959b88465e448ced00acf73c6d86f;hb=cfc9edf93ec15cb3ae64af76905d96c89681f51b;hp=20f92f719da73c179f79fa4580a2a1ae051aa6d3;hpb=34ac0a51e6b2dcebf3fbf19512fa42ebd3edc3b8;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm b/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm index 20f92f7..b0bf914 100644 --- a/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm +++ b/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm @@ -10,6 +10,26 @@ has deploy_method => ( handles => 'DBIx::Class::DeploymentHandler::HandlesDeploy', ); +has upgrade_directory => ( + isa => 'Str', + is => 'ro', + required => 1, + default => 'sql', +); + +has databases => ( + coerce => 1, + isa => 'DBIx::Class::DeploymentHandler::Databases', + is => 'ro', + default => sub { [qw( MySQL SQLite PostgreSQL )] }, +); + +has sqltargs => ( + isa => 'HashRef', + is => 'ro', + default => sub { {} }, +); + sub _build_deploy_method { my $self = shift; DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator->new({