You are here

public function TableComparison::addMissingIndex in Schema 8

1 call to TableComparison::addMissingIndex()
TableComparison::addMissingPrimaryKey in src/Comparison/Result/TableComparison.php

File

src/Comparison/Result/TableComparison.php, line 93
Contains Drupal\schema\Comparison\Result\TableComparison.

Class

TableComparison

Namespace

Drupal\schema\Comparison\Result

Code

public function addMissingIndex($field, $type, $definition) {
  $this->status = self::STATUS_DIFFERENT;
  $this->index_missing[$field] = new MissingIndex($this
    ->getTableName(), $field, $type, $definition);
}