function StubSchema::dropIndex

Drop an index.

Parameters

string $table: The table to be altered.

string $name: The name of the index.

Return value

bool TRUE if the index was successfully dropped, FALSE if there was no index by that name to begin with.

Overrides Schema::dropIndex

File

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

Class

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

Namespace

Drupal\Tests\Core\Database\Stub

Code

public function dropIndex($table, $name) {
  return TRUE;
}

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