src/ORM/Connect/MySQLSchemaManager.php
protected function getIndexSqlDefinition($indexName, $indexSpec)
    {
        if ($indexSpec['type'] == 'using') {
            return sprintf('index "%s" using (%s)', $indexName, $this->implodeColumnList($indexSpec['columns']));
        } else {
            return sprintf('%s "%s" (%s)', $indexSpec['type'], $indexName, $this->implodeColumnList($indexSpec['columns']));
        }
    }
protected function getIndexSqlDefinition($indexName, $indexSpec)
    {
        if ($indexSpec['type'] == 'using') {
            return sprintf('index "%s" using (%s)', $indexName, $this->implodeColumnList($indexSpec['columns']));
        } else {
            return sprintf('%s "%s" (%s)', $indexSpec['type'], $indexName, $this->implodeColumnList($indexSpec['columns']));
        }
    }
protected function getIndexSqlDefinition ( $ indexName , $ indexSpec ) { if ( $ indexSpec [ 'type' ] == 'using' ) { return sprintf ( 'index "%s" using (%s)' , $ indexName , $ this -> implodeColumnList ( $ indexSpec [ 'columns' ] ) ) ; } else { return sprintf ( '%s "%s" (%s)' , $ indexSpec [ 'type' ] , $ indexName , $ this -> implodeColumnList ( $ indexSpec [ 'columns' ] ) ) ; } }
Generate SQL suitable for creating this index

@param string $indexName
@param string|array $indexSpec See {@link requireTable()} for details
@return string MySQL compatible ALTER TABLE syntax
Generate SQL suitable for creating this index