mirror of
https://github.com/flarum/core.git
synced 2025-07-19 07:41:22 +02:00
Migrator: Fix resetting core migrations
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user