cleanup modelines
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / VersionStorage / Standard / VersionResultSet.pm
index 52d73ec..29f4003 100644 (file)
@@ -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 || 0;
+  })->get_column('version')->next;
 }
 
 1;
+
+# vim: ts=2 sw=2 expandtab
+
+__END__
+