mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
Migrator: Fix resetting core migrations
This commit is contained in:
parent
f0287c376a
commit
6f8707fa51
|
@ -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…
Reference in New Issue
Block a user