Skip to content
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

Problem using first artisan migrate in Laravel 5.4 #218

Closed
strikermdd opened this issue Mar 6, 2017 · 1 comment
Closed

Problem using first artisan migrate in Laravel 5.4 #218

strikermdd opened this issue Mar 6, 2017 · 1 comment

Comments

@strikermdd
Copy link

Hi, i´m trying to install this package in a clean laravel 5.4 install and using utf8-mb4 database, and it gives me this error:

[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter tabl
e roles add unique roles_name_unique(name))

[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

Its necessary to change something to be able to work with this database collation in Laravel 5.4 and your package migration?

@drbyte
Copy link
Collaborator

drbyte commented Mar 6, 2017

Ref: https://laravel-news.com/laravel-5-4-key-too-long-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants