/** * マイグレーションの状態を表示 */ public function showStatus() { // マイグレーションの一覧 $list = $this->listScripts(); if (count($list) == 0) { $this->logger->log("migrate nothing"); return 0; } else { $code = 0; foreach ($list as $version) { if ($this->table->isApplied($version)) { $this->logger->log("* {$version}"); } else { $this->logger->log(" {$version}"); $code = 1; } } return $code; } }