From: Arthur Axel 'fREW' Schmidt Date: Sun, 4 Jul 2010 07:00:21 +0000 (-0500) Subject: Make ignore_version connect attr more robust X-Git-Tag: v0.001002~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a05c2e22fc3c3dde363968c545338a21d11a8c25;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git Make ignore_version connect attr more robust --- diff --git a/Changes b/Changes index fe3af69..24ce897 100644 --- a/Changes +++ b/Changes @@ -4,6 +4,8 @@ Revision history for {{$dist->name}} - install should now work in all cases, previously had a really bad bug where it would try to install the version storage table twice, which breaks everything + - Fix issue where the ignore_version connect attr doesn't work in all + situations 0.001001 2010-06-26 10:46:03 CST6CDT - Fix bad parameters in version_storage install methods diff --git a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/Component.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/Component.pm index 578bd3b..4d63a24 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/Component.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/Component.pm @@ -20,7 +20,7 @@ sub connection { $self->attach_version_storage; - my $args = $_[3] || {}; + my $args = $self->storage->_dbic_connect_attributes; unless ( $args->{ignore_version} || $ENV{DBIC_NO_VERSION_CHECK}) { my $versions = $self->resultset('__VERSION');