You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just to clarify, the sequelizeMeta table should probably explicitly set its charset to utf8 to prevent this issue. The issue is that the unique key of 255 chars is too long for utf8mb4
Just a note that the "common practice" (as defined by Ruby's Active Record for migrations) is that for UTF8MB4 tables, the VARCHAR key length should be shrunk from 255 to 191. This allows keys to fit in the proper space without any other error.
When running migrations, get the ER_TOO_LONG_KEY, probably because the mysql database charset is utf8mb4. How to make it work?
Here is the database config:
The table trying to create:
And the sql that executed and got the error was
Based on the discussion sequelize/sequelize#4171 (comment), @janmeier suggested it was an issue of the migrator thus open an issue here.
The text was updated successfully, but these errors were encountered: