function Schema::addPrimaryKey
Add a primary key.
Parameters
$table: The table to be altered.
$fields: Fields for the primary key.
Overrides Schema::addPrimaryKey
File
-
core/
tests/ fixtures/ database_drivers/ module/ corefake/ src/ Driver/ Database/ corefakeWithAllCustomClasses/ Schema.php, line 45
Class
- Schema
- CorefakeWithAllCustomClasses implementation of \Drupal\Core\Database\Schema.
Namespace
Drupal\corefake\Driver\Database\corefakeWithAllCustomClassesCode
public function addPrimaryKey($table, $fields) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.