Skip to content

Commit

Permalink
Fix migration error "max key length is 767 bytes"
Browse files Browse the repository at this point in the history
  • Loading branch information
kojhon authored Jan 28, 2022
1 parent e547ea7 commit a7ceffa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;

class AppServiceProvider extends ServiceProvider
{
Expand All @@ -23,6 +24,6 @@ public function register()
*/
public function boot()
{
//
Schema::defaultStringLength(191);
}
}

0 comments on commit a7ceffa

Please sign in to comment.