From: Arthur Axel 'fREW' Schmidt Date: Tue, 18 May 2010 17:47:23 +0000 (-0500) Subject: SQLT DH should be copying schema_version X-Git-Tag: v0.001000_11~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-DeploymentHandler.git;a=commitdiff_plain;h=6df6dcb95ffa56978b1cb0aa9e6b0b4ca012a573;hp=540fa928900adb026b5725d6eaf9f20abce97c3b SQLT DH should be copying schema_version --- diff --git a/lib/DBIx/Class/DeploymentHandler.pm b/lib/DBIx/Class/DeploymentHandler.pm index ae54483..a792c25 100644 --- a/lib/DBIx/Class/DeploymentHandler.pm +++ b/lib/DBIx/Class/DeploymentHandler.pm @@ -11,7 +11,7 @@ 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_assume => [qw(schema schema_version)], attributes_to_copy => [qw( databases script_directory sql_translator_args )], }, 'DBIx::Class::DeploymentHandler::WithApplicatorDumple' => { diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index 982a62a..a5986d0 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -69,6 +69,9 @@ has schema_version => ( lazy_build => 1, ); +# this will probably never get called as the DBICDH +# will be passing down a schema_version normally, which +# is built the same way, but we leave this in place method _build_schema_version { $self->schema->schema_version } method __ddl_consume_with_prefix($type, $versions, $prefix) {