function StubSchema::addPrimaryKey
Add a primary key.
Parameters
string $table: The table to be altered.
array $fields: Fields for the primary key.
Overrides Schema::addPrimaryKey
File
-
core/
tests/ Drupal/ Tests/ Core/ Database/ Stub/ StubSchema.php, line 59
Class
- StubSchema
- A stub of the abstract Schema class for testing purposes.
Namespace
Drupal\Tests\Core\Database\StubCode
public function addPrimaryKey($table, $fields) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.