tableName = $name; return $this; } /** * Clear per-instance memoized results for this operation. * * @return $this */ public function updateCache() { if (empty($this->result)) { return $this; } $this->setFullTableName(); if (!isset($this->result[$this->fullName])) { return $this; } unset($this->result[$this->fullName]); return $this; } /** * Sets a runtime error based on the migration status details. * * @return void * @throws RuntimeException If the migration status is 'failed'. */ 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; } }