Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Specified key was too long; max key length is 1000 bytes (SQL: alter table `permissions` add unique `permissions_name_guard_name_unique`(`name`, `guard_name`))

// use 125 for defaultStringLength

use IlluminateSupportFacadesSchema;

public function boot()
  {
  Schema::defaultStringLength(125);
  }
 
PREVIOUS NEXT
Tagged: #Specified #key #max #key #length #bytes #alter #table #add #unique
ADD COMMENT
Topic
Name
3+1 =