Core/Database/MSSqlDatabase.php
public function addIndex($table, $column, $name)
    {
        $sql = sprintf('ALTER TABLE %s ADD INDEX %s(%s)', $table, $name, $column);

        // Execute query
        $stmt = $this->connection->prepare($sql);
        return $stmt->execute();
    }
public function addIndex($table, $column, $name)
    {
        $sql = sprintf('ALTER TABLE %s ADD INDEX %s(%s)', $table, $name, $column);

        // Execute query
        $stmt = $this->connection->prepare($sql);
        return $stmt->execute();
    }
public function addIndex ( $ table , $ column , $ name ) { $ sql = sprintf ( 'ALTER TABLE %s ADD INDEX %s(%s)' , $ table , $ name , $ column ) ; // Execute query $ stmt = $ this -> connection -> prepare ( $ sql ) ; return $ stmt -> execute ( ) ; }
Add index to table column.

@param string $table
@param string $column
@param string $name
@return bool
Add index to table column .