X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-DeploymentHandler.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FDeployMethod%2FSQL%2FTranslator.pm;fp=lib%2FDBIx%2FClass%2FDeploymentHandler%2FDeployMethod%2FSQL%2FTranslator.pm;h=8e5c50ef8ba7b5c58330ce280ca7af2d8df75b8e;hp=5fb6918461f21e868ef16bf9e3d16f72b3f2ace1;hb=7d876442f151bedf8bcf7d594f30d58f6dad8b59;hpb=eb701ec6f072186383fcd7d6293a89eca85bfd48 diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index 5fb6918..8e5c50e 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -24,6 +24,14 @@ use File::Spec::Functions; with 'DBIx::Class::DeploymentHandler::HandlesDeploy'; +with 'DBIx::Class::DeploymentHandler::WithApplicatorDumple' => { + interface_role => 'DBIx::Class::DeploymentHandler::HandlesProvideSchema', + class_name => 'DBIx::Class::DeploymentHandler::ProvideSchema::SchemaLoader', + delegate_name => 'schema_provider', + attributes_to_assume => ['schema'], + attributes_to_copy => [qw( schema )], + }; + has ignore_ddl => ( isa => 'Bool', is => 'ro', @@ -303,7 +311,7 @@ sub _run_perl { if ($@) { croak "$filename failed to compile: $@"; } elsif (ref $fn eq 'CODE') { - $fn->($self->schema, $versions) + $fn->($self->migration_schema, $versions) } else { croak "$filename should define an anonymouse sub that takes a schema but it didn't!"; }