Created
May 26, 2018 06:01
-
-
Save corean/2296faf1c8f76eab0715a89f5827c91f to your computer and use it in GitHub Desktop.
Specified key was too long; max key length is 767 bytes
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
| /* | |
| [Illuminate\Database\QueryException] | |
| SQLSTATE[42000]: Syntax 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)) | |
| [PDOException] | |
| SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes | |
| */ | |
| 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