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
Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access
violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: a
lter table model_has_permissions add index model_has_permissions_model_id_mod el_type_index(model_id, model_type))
The text was updated successfully, but these errors were encountered:
In Laravel 5.4 the default character set changed to utf8mb4, therefore if you are running MariaDB or MYSQL version lower than 5.7.7 you may get that error when trying to run migration files.
Your app requires a configuration setting change: https://laravel-news.com/laravel-5-4-key-too-long-error
Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access
violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: a
lter table
model_has_permissions
add indexmodel_has_permissions_model_id_mod el_type_index
(model_id
,model_type
))The text was updated successfully, but these errors were encountered: