X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FDeprecated%2FWithDeprecatedSqltDeployMethod.pm;h=05d482536b892e5a6091d2057c3be0b86fac5301;hb=9deabd1fcf64a04422d1903f8656ac445e73336a;hp=ab687551bb68c340d89c98e9e9689134657ff112;hpb=013429985a2df1b341d8e27f98252fa14f878c1f;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/Deprecated/WithDeprecatedSqltDeployMethod.pm b/lib/DBIx/Class/DeploymentHandler/Deprecated/WithDeprecatedSqltDeployMethod.pm index ab68755..05d4825 100644 --- a/lib/DBIx/Class/DeploymentHandler/Deprecated/WithDeprecatedSqltDeployMethod.pm +++ b/lib/DBIx/Class/DeploymentHandler/Deprecated/WithDeprecatedSqltDeployMethod.pm @@ -1,6 +1,8 @@ package DBIx::Class::DeploymentHandler::Deprecated::WithDeprecatedSqltDeployMethod; use Moose::Role; +# ABSTRACT: (DEPRECATED) Use this if you are stuck in the past + use DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated; has deploy_method => ( @@ -10,6 +12,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::Deprecated->new({ @@ -22,6 +44,7 @@ sub _build_deploy_method { 1; +# vim: ts=2 sw=2 expandtab + __END__ -vim: ts=2 sw=2 expandtab