Skip to content

Commit

Permalink
even more careful disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
jjn1056 committed Mar 5, 2015
1 parent 9af4ae5 commit d7d8340
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Revision history for DBIx-Class-Migration.

0.053 2015-02=05
- Even more careful disconnection on DEMOLISH

0.052 2015-02-05
- Don't disconnect on DEMOLISH if the schema already is gone

Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ copyright_holder = John Napiorkowski
copyright_year = 2015
abstract = Tools to make migrating your DBIx::Class databases easier
main_module = lib/DBIx/Class/Migration.pm
version = 0.052
version = 0.053

[@Basic]

Expand Down
4 changes: 2 additions & 2 deletions lib/DBIx/Class/Migration.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package DBIx::Class::Migration;

our $VERSION = "0.052";
our $VERSION = "0.053";
$VERSION = eval $VERSION;

use Moose;
Expand Down Expand Up @@ -556,7 +556,7 @@ before [qw/install upgrade downgrade/], sub {

sub DEMOLISH {
my $self = shift;
return unless $self->has_schema;
return unless $self->has_schema && $self->schema;
if(my $storage = $self->schema->storage) {
$storage->disconnect;
}
Expand Down

0 comments on commit d7d8340

Please sign in to comment.