samedi 6 mai 2017

laravel 5.4 migration not working properly

I got this issue when I use laravel migration to create a table in the database. I don't know what might be wrong with it as I use the same command on my previous system. This is the error I got while using composer to create the table.

$ php artisan migrate Migration table created successfully.

[Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t oo long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email))

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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire