coreui / coreui-free-laravel-admin-template

CoreUI Free Laravel Bootstrap Admin Template
https://coreui.io/laravel/
MIT License
635 stars 359 forks source link

ERROR While Migrating #5

Open thomas-tahmasebi opened 4 years ago

thomas-tahmasebi commented 4 years ago

Migrating: 2014_10_12_000000_create_users_table

Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter tableusersadd uniqueusers_email_unique(email))

rakieta2015 commented 4 years ago

This looks like a problem with the database itself, not with our project. I suggest you change the database engine and check if the problem still exists. By the way, which database is causing the problem?

williamwithin commented 4 years ago

Check this thread: https://github.com/laravel/framework/issues/17508

The solutions there are either editing app/Providers/AppServiceProvider.php or config/database.php

Both solutions got me past that issue to the next issue...