protected function _writeError($message) { UtilConsole::getInstance()->writeError($message); }
break; case Migration::STATUS_STATUS: $migration->status(); break; case Migration::STATUS_UP_SHOW: $migration->upShow(isset($_SERVER['argv'][2]) ? $_SERVER['argv'][2] : null); break; case Migration::STATUS_DOWN_SHOW: $migration->downShow(isset($_SERVER['argv'][2]) ? $_SERVER['argv'][2] : null); break; case Migration::STATUS_UP_RUN: $migration->up(isset($_SERVER['argv'][2]) ? $_SERVER['argv'][2] : null); break; case Migration::STATUS_DOWN_RUN: $migration->down(isset($_SERVER['argv'][2]) ? $_SERVER['argv'][2] : null); break; case Migration::STATUS_UNDO: $migration->undo(isset($_SERVER['argv'][2]) ? $_SERVER['argv'][2] : null); break; case Migration::STATUS_REDO: $migration->redo(isset($_SERVER['argv'][2]) ? $_SERVER['argv'][2] : null); break; case Migration::STATUS_LIST: $migration->mlist(); break; case Migration::STATUS_HELP: echo $migration->getHelp(); break; default: \Util\Console::getInstance()->writeError('Command ' . $_SERVER['argv'][1] . ' not found'); }