X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FDeployMethod%2FSQL%2FTranslator.pm;h=2bab1e46091159849032cd397282eb5ca445def5;hb=41a539b4f7147fb311409eb99ddd3a71f5787bbe;hp=5fb6918461f21e868ef16bf9e3d16f72b3f2ace1;hpb=115c68ce0fc0e56265d201a8f7bbcf912efa86db;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index 5fb6918..2bab1e4 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::HandlesMigrationSchema', + class_name => 'DBIx::Class::DeploymentHandler::MigrationSchema::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!"; }