1.20.x database.inc | db_drop_primary_key($table) |
Drops the primary key of a database table.
Parameters
$table: Name of the table to be altered.
Related topics
File
- includes/
database/ database.inc, line 3162 - Core systems for the database layer.
Code
function db_drop_primary_key($table) {
return Database::getConnection()->schema()->dropPrimaryKey($table);
}