PHP Class RedUNIT\Mysql\Issue411

InnoDB has a maximum index length of 767 bytes, so with utf8mb4 you can only store 191 characters. This means that when you subsequently add an index to the column you get a (not-so-obvious) MySQL-error. That's why we limit the varchar to 191 chars and then switch to TEXT type.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Mysql
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
testInnoDBIndexLimit ( ) : void Test varchar 191 condition.

Method Details

testInnoDBIndexLimit() public method

Test varchar 191 condition.
public testInnoDBIndexLimit ( ) : void
return void