tableName = $name; return $this; } /** * Sets a runtime error based on the migration status details. * * @throws RuntimeException If the migration status is 'failed'. * @return void */ public function setRunTimeError() { $details = Option::getOptionGroup('db', 'migration_status_detail', null); if (empty($details['status'])) { return; } if ($details['status'] === 'failed') { throw new RuntimeException($details['message']); } return; } }