ozziexsh/laravel-jetstream-react

Error when trying to migrate after fresh install

Closed this issue · 3 comments

An error occurs when trying to migrate after a fresh install, no files changed.

Command: php artisan migrate

 Illuminate\Database\QueryException

  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))   

  1   [PathToProject]\vendor\laravel\framework\src\Illuminate\Database\Connection.php:501
      PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes")

  2   [PathToProject]\vendor\laravel\framework\src\Illuminate\Database\Connection.php:501
      PDOStatement::execute()

hey this is a laravel issue not this generator

please take a look at this link

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

@ozziexsh Hey, where can I ask general questions about the codebase of this project, not necessarily an issue?

@TendezaDev go ahead and do it in a new issue 🙂