Fix problems with mysql migrations utf8mb4
This commit is contained in:
parent
7a8a31ebf8
commit
1ed3621b7e
@ -3,6 +3,7 @@
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
@ -23,6 +24,6 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
Schema::defaultStringLength(191);
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,8 +15,8 @@ class CreateAuthTokensTable extends Migration
|
||||
{
|
||||
Schema::create('auth_tokens', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name', 255)->unique();
|
||||
$table->string('token', 255)->unique();
|
||||
$table->string('name', 191)->unique();
|
||||
$table->string('token', 191)->unique();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user