| Versionen | |
|---|---|
| drupal7 | public DatabaseSchema_mysql::changeField(&$ret, $table, $field, $field_new, $spec, $keys_new = array()) |
includes/
<?php
public function changeField(&$ret, $table, $field, $field_new, $spec, $keys_new = array()) {
$sql = 'ALTER TABLE {' . $table . '} CHANGE `' . $field . '` ' . $this->createFieldSql($field_new, $this->processField($spec));
if (count($keys_new)) {
$sql .= ', ADD ' . implode(', ADD ', $this->createKeysSql($keys_new));
}
$ret[] = update_sql($sql);
}
?>
Kommentare
Kommentar hinzufügen