// Check for the 'utf8_bin' collation.
if (isset($row['Collation'
]) &&
$row['Collation'
] == 'utf8_bin'
) { $definition['fields'
][$name]['binary'
] = TRUE;
} } // Set primary key, unique keys, and indexes.
$this->
getTableIndexes($connection,
$table,
$definition);
// Set table collation.
$this->
getTableCollation($connection,
$table,
$definition);
return $definition;
} /**
* Adds primary key, unique keys, and index information to the schema.
*
* @param \Drupal\Core\Database\Connection $connection
* The database connection to use.
* @param string $table
* The table to find indexes for.
* @param array &$definition
* The schema definition to modify.
*/