DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))
use
IlluminateSupportFacadesSchema
;
public
function
boot
(
)
{
Schema
::
defaultStringLength
(
191
)
;
}
Source by laravel-news.com #
PREVIOUS
NEXT
Tagged:
#Syntax
#error
#access
#Specified
#key
#max
#key
#length
#bytes
#alter
#table
#add
#unique
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit