mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +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)
|
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);
|
$count = count($migrations);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user