/** * Get table collation. * * @param string $table * @param mixed $database * @return null */ public function getCollation($table, $database = null) { if (method_exists($this->schema, 'getTableCharset')) { $tableInfo = $this->schema->getTableCharset($table, $database); return $tableInfo ? $tableInfo['collation'] : null; } return; }