A common problem when running migrations is the SQL error for long indexes.
Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
This requires editing App\Providers\AppServiceProvider::boot() method to up the string length.
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
public function boot()
{
Schema::defaultStringLength(191);
}
...
}
@webstractions we cant say it is an issue with this application. This is a common issue in laravel when you use migration. I recommend this to be posted in Laravel repo not here.
A common problem when running migrations is the SQL error for long indexes.
Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
This requires editing
App\Providers\AppServiceProvider::boot()
method to up the string length.