X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FVersionStorage%2FStandard%2FVersionResultSet.pm;h=29f400394e80add379d789eb450d6099f466454e;hb=e52174e31b95fe335f6ab8cfdbf23cc2a0c05673;hp=79f06a3d51161183c017c6ca5e360b017be89ddc;hpb=22be40e970f61f29ef3f4812282cccccb812e0f4;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/VersionResultSet.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/VersionResultSet.pm index 79f06a3..29f4003 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/VersionResultSet.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/VersionResultSet.pm @@ -9,15 +9,20 @@ use Try::Tiny; sub version_storage_is_installed { my $self = shift; - try { $self->next; 1} catch { undef } + try { $self->next; 1 } catch { undef } } sub database_version { my $self = shift; $self->search(undef, { - order_by => { -desc => 'installed' }, + order_by => { -desc => 'id' }, rows => 1 })->get_column('version')->next; } 1; + +# vim: ts=2 sw=2 expandtab + +__END__ +