1 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

core/includes/database/database.inc, line 2978
Core systems for the database layer.

Code

function db_drop_primary_key($table) {
  return Database::getConnection()->schema()->dropPrimaryKey($table);
}