DatabaseSchema::addIndex

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

Add an index.

@throws DatabaseSchemaObjectExistsException If the specified table already has an index by that name.

Parameters

$table: The table to be altered.

$name: The name of the index.

$fields: An array of field names.

Throws

DatabaseSchemaObjectDoesNotExistException If the specified table doesn't exist.

File

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

Code

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