extends 'DBIx::Class::DeploymentHandler::Dad';
# a single with would be better, but we can't do that
# see: http://rt.cpan.org/Public/Bug/Display.html?id=46347
-with 'DBIx::Class::DeploymentHandler::WithSqltDeployMethod',
- #'DBIx::Class::DeploymentHandler::WithApplicatorDumple' => {
- #interface_role => 'DBIx::Class::DeploymentHandler::HandlesVersionStorage',
- #class_name => 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator',
- #delegate_name => 'deploy_method',
- #attributes_to_assume => ['schema'],
- #attributes_to_copy => [qw( databases upgrade_directory sql_translator_args )],
- #},
+with 'DBIx::Class::DeploymentHandler::WithApplicatorDumple' => {
+ interface_role => 'DBIx::Class::DeploymentHandler::HandlesDeploy',
+ class_name => 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator',
+ delegate_name => 'deploy_method',
+ attributes_to_assume => ['schema'],
+ attributes_to_copy => [qw( databases upgrade_directory sql_translator_args )],
+ },
'DBIx::Class::DeploymentHandler::WithApplicatorDumple' => {
interface_role => 'DBIx::Class::DeploymentHandler::HandlesVersioning',
class_name => 'DBIx::Class::DeploymentHandler::VersionHandler::Monotonic',
required => 1,
);
-parameter interface_role => (
- isa => 'Str',
- required => 1,
-);
-
parameter attributes_to_copy => (
isa => 'ArrayRef[Str]',
default => sub {[]},
my $meta = Class::MOP::class_of($class_name);
- has [map %{$_->clone}, map $meta->get_attribute($_), @{ $p->attributes_to_copy }];
+ has $_->name => %{ $_->clone }
+ for grep { $_ } map $meta->get_attribute($_), @{ $p->attributes_to_copy };
has $p->delegate_name => (
is => 'ro',