MetaModels\Helper\TableManipulation::addIndex PHP Метод

addIndex() публичный статический Метод

Add a index to given tablename for specified columnname
public static addIndex ( string $strTableName, string $strIndexType, string $strColName ) : void
$strTableName string The table name.
$strIndexType string The index type.
$strColName string The column name to add a index.
Результат void
    public static function addIndex($strTableName, $strIndexType, $strColName)
    {
        self::checkColumnExists($strTableName, $strColName);
        self::getDB()->execute(sprintf(self::STATEMENT_ADD_INDEX_COLUMN, $strTableName, $strIndexType, $strColName));
    }