Commit 0b6e0b60 authored by Dries's avatar Dries

- Patch #637058 by jhodgdon: documentation improvements.

parent ca8416e0
......@@ -2442,22 +2442,22 @@ function db_field_set_no_default($table, $field) {
}
/**
* Add a primary key.
* Adds a primary key to a database table.
*
* @param $table
* The table to be altered.
* Name of the table to be altered.
* @param $fields
* Fields for the primary key.
* Array of fields for the primary key.
*/
function db_add_primary_key($table, $fields) {
return Database::getConnection()->schema()->addPrimaryKey($table, $fields);
}
/**
* Drop the primary key.
* Drops the primary key of a database table.
*
* @param $table
* The table to be altered.
* Name of the table to be altered.
*/
function db_drop_primary_key($table) {
return Database::getConnection()->schema()->dropPrimaryKey($table);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment