Created
February 7, 2018 15:57
-
-
Save abel-masila/c6e9b1168ff48c79e20865d6d2e665f0 to your computer and use it in GitHub Desktop.
yntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Illuminate\Support\Facades\Schema; | |
public function boot() | |
{ | |
Schema::defaultStringLength(191); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment