admin themes
This commit is contained in:
@ -78,12 +78,14 @@ class MigrationController extends ConsoleController
|
||||
public function actionRollback(): void
|
||||
{
|
||||
try {
|
||||
$step = $this->argv['step'] ?? 1;
|
||||
$dmr = new DatabaseMigrationRepository(App::$db->capsule->getDatabaseManager(), 'migration');
|
||||
|
||||
$m = new Migrator($dmr, App::$db->capsule->getDatabaseManager(), new Filesystem());
|
||||
//$migrationPaths = array_merge(App::$migrationsPaths, [WORKSPACE_DIR . '/console/migrations']);
|
||||
$migrationPaths = [ROOT_DIR . '/console/migrations'];
|
||||
$res = $m->rollback($migrationPaths);
|
||||
$migrationPaths = [ROOT_DIR . '/migrations'];
|
||||
$res = $m->rollback($migrationPaths, ['step' => $step]);
|
||||
print_r($step);
|
||||
foreach ($res as $re){
|
||||
$this->out->r(basename($re), 'green');
|
||||
}
|
||||
|
Reference in New Issue
Block a user