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/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Schema.php, line 45

Class

Schema
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Schema.

Namespace

Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses

Code

public function addPrimaryKey($table, $fields) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.