| Versionen | |
|---|---|
| drupal7 | public DatabaseSchema_sqlite::addUniqueKey(&$ret, $table, $name, $fields) |
Add a unique key.
$ret Array to which query results will be added.
$table The table to be altered.
$name The name of the key.
$fields An array of field names.
includes/
<?php
public function addUniqueKey(&$ret, $table, $name, $fields) {
$schema['unique keys'][$name] = $fields;
$ret[] = update_sql($this->createIndexSql($table, $schema));
}
?>
Kommentare
Kommentar hinzufügen