From: Arthur Axel 'fREW' Schmidt Date: Sun, 4 Jul 2010 04:53:41 +0000 (-0500) Subject: Do not put version storage in regular deploy schema X-Git-Tag: v0.001002~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6776a6d4c94d12eedde6b8c28e5274e7f7cf8f44;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git Do not put version storage in regular deploy schema --- diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index 25d981a..de4f33e 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -495,7 +495,10 @@ sub prepare_resultsource_install { sub prepare_deploy { log_info { 'preparing deploy' }; my $self = shift; - $self->prepare_protoschema({}, '_ddl_protoschema_produce_filename'); + $self->prepare_protoschema({ + # Exclude __VERSION so that it gets installed separately + parser_args => { sources => [grep { $_ ne '__VERSION' } $self->schema->sources], } + }, '_ddl_protoschema_produce_filename'); $self->_prepare_install({}, '_ddl_protoschema_produce_filename', '_ddl_schema_produce_filename'); }