1 database.inc | db_drop_unique_key($table, $name) |
Drops a unique key.
Parameters
string $table: The table to be altered.
string $name: The name of the key.
Return value
bool: TRUE if the key was successfully dropped, FALSE if there was no key by that name to begin with.
Related topics
File
- core/
includes/ database/ database.inc, line 3244 - Core systems for the database layer.
Code
function db_drop_unique_key($table, $name) {
return Database::getConnection()->schema()->dropUniqueKey($table, $name);
}