/** * Show the extensions to migrate */ public function indexAction() { $migrations = $this->runner->migratableExtensionStatuses(); $exts = array_keys($migrations); $this->view->assign('migrations', $migrations); $this->view->assign('extensions', array_combine($exts, $exts)); }
/** * Rolls back a migration. * @param string $extKey Key of extension containing migrations * @return void */ public function rollbackCommand($extKey) { $this->outputLine(); $messages = $this->runner->rollback($extKey); foreach ($messages as $msg) { $this->outputLine($msg); } $this->outputLine(); }