src/ORM/Connect/MySQLSchemaManager.php
public function createIndex($tableName, $indexName, $indexSpec)
    {
        $this->query("ALTER TABLE \"$tableName\" ADD " . $this->getIndexSqlDefinition($indexName, $indexSpec));
    }
public function createIndex($tableName, $indexName, $indexSpec)
    {
        $this->query("ALTER TABLE \"$tableName\" ADD " . $this->getIndexSqlDefinition($indexName, $indexSpec));
    }
public function createIndex ( $ tableName , $ indexName , $ indexSpec ) { $ this -> query ( "ALTER TABLE \"$tableName\" ADD " . $ this -> getIndexSqlDefinition ( $ indexName , $ indexSpec ) ) ; }
Create an index on a table.

@param string $tableName The name of the table.
@param string $indexName The name of the index.
@param string $indexSpec The specification of the index, see {@link SS_Database::requireIndex()} for more
details.
Create an index on a table .