mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:11:40 +08:00
Migrator: Fix resetting core migrations
This commit is contained in:
parent
8e4f02d994
commit
8ad326941f
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user