From 6f8707fa51e3324ef821b5233b5877c46da0a60d Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Thu, 31 Jan 2019 22:42:35 +0100 Subject: [PATCH] Migrator: Fix resetting core migrations --- framework/core/src/Database/Migrator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/core/src/Database/Migrator.php b/framework/core/src/Database/Migrator.php index 980abe2f6..ac61af7d7 100644 --- a/framework/core/src/Database/Migrator.php +++ b/framework/core/src/Database/Migrator.php @@ -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);