1 database.inc | db_drop_primary_key($table) |
Drops the primary key of a database table.
Parameters
string $table: Name of the table to be altered.
Return value
bool: TRUE if the primary key was successfully dropped, FALSE if there was no primary key on this table to begin with.
Related topics
File
- core/
includes/ database/ database.inc, line 3198 - Core systems for the database layer.
Code
function db_drop_primary_key($table) {
return Database::getConnection()->schema()->dropPrimaryKey($table);
}