/** * Rename a column. * * @param string $table * Table name. * @param string $column * Current column name. * @param string $newName * New column name. */ protected function renameColumn($table, $column, $newName) { try { $this->db->renameColumn($table, $column, $newName); $this->definition->renameColumn($table, $column, $newName); } catch (\Exception $e) { if (!$this->ignoreExceptions) { throw $e; } } }