option('from'); $to = (string) $this->option('to'); $force = (bool) $this->option('force'); if ($from === '' || $to === '') { $this->error('--from 과 --to 는 필수 옵션입니다.'); return self::INVALID; } try { $service->runUpgradeSteps( $from, $to, fn (string $version) => $this->info("upgrade step 실행: {$version}"), $force, ); } catch (\Throwable $e) { Log::error('core:execute-upgrade-steps 실패', [ 'from' => $from, 'to' => $to, 'error' => $e->getMessage(), ]); $this->error($e->getMessage()); return self::FAILURE; } return self::SUCCESS; } }