src/Helper/TableManipulation.php
public static function addIndex($strTableName, $strIndexType, $strColName)
    {
        self::checkColumnExists($strTableName, $strColName);
        self::getDB()->execute(
            sprintf(
                self::STATEMENT_ADD_INDEX_COLUMN,
                $strTableName,
                $strIndexType,
                $strColName
            )
        );
    }
public static function addIndex($strTableName, $strIndexType, $strColName)
    {
        self::checkColumnExists($strTableName, $strColName);
        self::getDB()->execute(
            sprintf(
                self::STATEMENT_ADD_INDEX_COLUMN,
                $strTableName,
                $strIndexType,
                $strColName
            )
        );
    }
public static function addIndex ( $ strTableName , $ strIndexType , $ strColName ) { self :: checkColumnExists ( $ strTableName , $ strColName ) ; self :: getDB ( ) -> execute ( sprintf ( self :: STATEMENT_ADD_INDEX_COLUMN , $ strTableName , $ strIndexType , $ strColName ) ) ; }
Add a index to given tablename for specified columnname

@param string $strTableName The table name.

@param string $strIndexType The index type.

@param string $strColName   The column name to add a index.

@return void

@throws \Exception If an invalid table name has been passed or the table does not exist, the column name is
invalid or the column does not exist.
Add a index to given tablename for specified columnname