Migrator: Fix resetting core migrations

This commit is contained in:
Franz Liedke 2019-01-31 22:42:35 +01:00
parent f0287c376a
commit 6f8707fa51

View File

@ -146,7 +146,9 @@ class Migrator
*/
public function reset($path, Extension $extension = null)
{
$migrations = array_reverse($this->repository->getRan($extension->getId()));
$migrations = array_reverse($this->repository->getRan(
$extension ? $extension->getId() : null
));
$count = count($migrations);