1 schema.inc | protected DatabaseSchema_mysql::createKeySql($fields) |
File
- core/
includes/ database/ mysql/ schema.inc, line 281 - 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);
}