public function addIndex($columnName, $type = Table::INDEX_REGULAR) {
        if (!array_key_exists($columnName, $this->getIndexes()) && !array_key_exists($columnName,
                        $this->newIndexes))
                $this->newIndexes[$columnName] = $type;
        return $this;
    }
public function addIndex($columnName, $type = Table::INDEX_REGULAR) {
        if (!array_key_exists($columnName, $this->getIndexes()) && !array_key_exists($columnName,
                        $this->newIndexes))
                $this->newIndexes[$columnName] = $type;
        return $this;
    }
public function addIndex ( $ columnName , $ type = Table :: INDEX_REGULAR ) { if ( ! array_key_exists ( $ columnName , $ this -> getIndexes ( ) ) && ! array_key_exists ( $ columnName , $ this -> newIndexes ) ) $ this -> newIndexes [ $ columnName ] = $ type ; return $ this ; }
Adds an index to a column
@param string $columnName
@param string $type Should be one of \DBScribe\Table::INDEX_REGULAR,  \DBScribe\Table::INDEX_UNIQUE,
or  \DBScribe\Table::INDEX_FULLTEXT
@return Table
Adds an index to a column