Skip to content

Commit 3bac055

Browse files
committed
Apply fix mysql specified key was too long
1 parent bae61a0 commit 3bac055

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/Providers/AppServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Providers;
44

55
use Illuminate\Support\ServiceProvider;
6+
// use Illuminate\Support\Facades\Schema;
67

78
class AppServiceProvider extends ServiceProvider
89
{
@@ -23,6 +24,7 @@ public function register()
2324
*/
2425
public function boot()
2526
{
26-
//
27+
// mysql specified key was too long: https://laravel.com/docs/9.x/migrations#index-lengths-mysql-mariadb
28+
// Schema::defaultStringLength(191);
2729
}
2830
}

0 commit comments

Comments
 (0)