Created
December 15, 2017 12:09
-
-
Save kobeumut/9b852ae7f00b213f91e7a8d08eaef550 to your computer and use it in GitHub Desktop.
low version laravel migrate in mysql
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`)) | |
| 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