Index: doctrine/Doctrine/Migration.php
===================================================================
--- doctrine/Doctrine/Migration.php	(revision 520)
+++ doctrine/Doctrine/Migration.php	(working copy)
@@ -347,8 +347,8 @@
                     return $to;
                 }
             } else {
+                $this->setCurrentVersion($to);
                 $this->_connection->commit();
-                $this->setCurrentVersion($to);
                 return $to;
             }
         }
