LMSouq
php-dev Open

Laravel Migration Error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

IM
imbakar
1 month ago
3 views
Problem Description
**Migration error on Laravel 5.4 with `php artisan make:auth`** > [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 `users` add unique `users_email_unique`(`email`)) > > [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base