Search
 
SCRIPT & CODE EXAMPLE
 

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);
  }
Comment

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`))

On MySQL 8.0 use defaultStringLength(125)
Comment

PREVIOUS NEXT
Code Example
Csharp :: unique id c# 
Csharp :: how to make an object jump in unity 
Csharp :: west of loathing 
Csharp :: Editor log location unity 
Csharp :: c# retrieve files in folder 
Csharp :: c# method summary new line 
Csharp :: get directory name of path c# 
Csharp :: get time part from datetime as timestamp in c# 
Csharp :: tests not showing in test explorer 
Csharp :: access a local varible in a different function C# 
Csharp :: boostrap 4 modal 
Csharp :: C# .NET Core linq Distinct 
Csharp :: run linux command in c# 
Csharp :: c# stop loop 
Csharp :: Comapre Binary Trees 
Csharp :: import time C# 
Csharp :: c# loop through files in folder 
Csharp :: unity check if a animator parameter trigger is activated 
Csharp :: c# groupby date 
Csharp :: shuffle arraylist c# 
Csharp :: c# get last item in list 
Csharp :: unity on inspector change 
Csharp :: enum get all values c# 
Csharp :: c# console foreground color 
Csharp :: how to redirect to extern page in .net core 
Csharp :: unity cos 
Csharp :: get layermask from gameobject layer unity 
Csharp :: c# initialize empty array 
Csharp :: how delete multiple row from relation in laravel 
Csharp :: c# array to string 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =