Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel Migration Error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

use IlluminateSupportFacadesSchema;

/**
 * Bootstrap any application services.
 *
 * @return void
 */
public function boot()
{
    Schema::defaultStringLength(191);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Migration #Syntax #error #access #Specified #key #max #key #length #bytes
ADD COMMENT
Topic
Name
9+2 =