function StubSchema::dropPrimaryKey

Drop the primary key.

Parameters

string $table: The table to be altered.

Return value

bool TRUE if the primary key was successfully dropped, FALSE if there was no primary key on this table to begin with.

Overrides Schema::dropPrimaryKey

File

core/tests/Drupal/Tests/Core/Database/Stub/StubSchema.php, line 65

Class

StubSchema
A stub of the abstract Schema class for testing purposes.

Namespace

Drupal\Tests\Core\Database\Stub

Code

public function dropPrimaryKey($table) {
  return TRUE;
}

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