I'm getting the error in MySQL and I do not know how to solve it.
Below is the output:
code: 'ER_TOO_LONG_KEY',
errno: 1071,
sqlMessage: 'Specified key was too long; max key length is 767 bytes',
sqlState: '42000',
index: 0,
sql: 'alter table 'positions' add unique 'positions_name_unique'('name')'
}
Image of the table structure:
- > link
The charset used is UTF-8.