public function SchemaDatabaseSchema_mysql::getIndexes in Schema 8
Overrides DatabaseSchemaInspectionInterface::getIndexes
File
- src/
SchemaDatabaseSchema_mysql.php, line 62 - Schema module enhancements to DatabaseSchema_mysql
Class
Namespace
Drupal\schemaCode
public function getIndexes($table_name) {
return $this->connection
->query('SHOW INDEX FROM {' . $table_name . '} WHERE Key_name != \'PRIMARY\';')
->fetchCol(2);
}