Created
June 28, 2018 17:27
-
-
Save jhowbhz/148a78e68b265408972f458cd77aec95 to your computer and use it in GitHub Desktop.
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
This file contains 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
// Corrigindo o problema relacionado ao chasert do banco | |
// Setar 191max | |
public function boot(){ | |
Schema::defaultStringLength(191); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment