-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1071 Specified key was too long #909
Comments
Why are you using https://laravel-news.com/laravel-5-4-key-too-long-error EDIT: FYI ... v4 of this package, which adds some unique indexes in the migration, requires 125 instead of 191 if you're using MySQL 8.0. (MariaDB doesn't require any of this). |
Thank you, I hadn't realised that I had set it to 200. That seems to be the problem. |
running "php artisan migrate" , which try to add unique to permissions table gives error of #1071 - Specified key was too long; max key length is 1000 bytes , even if I have set Schema::defaultStringLength(191); in appserviceprovider |
Make sure that your storage engine is INNODB. |
|
Hi I am using Laravel 5.6 and I am getting the following error;
I have added the following to my AppServiceProvider.php
However I still get the error.
Here is the code used to create the table;
I'm assuming the problem is in regards to the model_type column being created with the primary key, however I have no idea how to fix it?
The text was updated successfully, but these errors were encountered: