Skip to content

Commit 4d64b1f

Browse files
authored
Update ModuleInstaller.php
1 parent 4987d3c commit 4d64b1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/ModuleInstaller.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function install()
8282
Yii::$app->init();
8383
}
8484
if ($this->runModuleMigrations || \Yii::$app->controller->confirm('Run migrations')) {
85-
\Yii::$app->runAction('core/migrate/up', ['all', 'moduleId' => $this->getModuleId(), 'interactive' => false]);
85+
\Yii::$app->runAction('modules-migrate/up', ['all', 'moduleId' => $this->getModuleId(), 'interactive' => false]);
8686
}
8787
}
8888

@@ -197,7 +197,7 @@ public function uninstall()
197197
$this->removeFromConfig();
198198
}
199199
if ($this->runModuleMigrations || \Yii::$app->controller->confirm('Down module migrations?')) {
200-
\Yii::$app->runAction('core/migrate/down', ['all', 'moduleId' => $this->getModuleId(), 'interactive' => false]);
200+
\Yii::$app->runAction('modules-migrate/down', ['all', 'moduleId' => $this->getModuleId(), 'interactive' => false]);
201201
}
202202
}
203203

@@ -258,4 +258,4 @@ protected function deleteFile($alias)
258258
@unlink($path);
259259
}
260260
}
261-
}
261+
}

0 commit comments

Comments
 (0)