DatabaseSchema::addUniqueKey

7 schema.inc abstract public DatabaseSchema::addUniqueKey($table, $name, $fields)

Add a unique key.

@throws DatabaseSchemaObjectExistsException If the specified table already has a key by that name.

Parameters

$table: The table to be altered.

$name: The name of the key.

$fields: An array of field names.

Throws

DatabaseSchemaObjectDoesNotExistException If the specified table doesn't exist.

File

includes/database/schema.inc, line 530
Generic Database schema code.

Code

abstract public function addUniqueKey($table, $name, $fields);
Login or register to post comments