1.20.x schema.inc | protected DatabaseSchema_mysql::createKeySql($fields) |
File
- drivers/
database_mysql/ schema.inc, line 297 - Database schema code for MySQL database servers.
Class
Code
protected function createKeySql($fields) {
$return = array();
foreach ($fields as $field) {
if (is_array($field)) {
$return[] = '`' . $field[0] . '`(' . $field[1] . ')';
}
else {
$return[] = '`' . $field . '`';
}
}
return implode(', ', $return);
}