Fix problems with mysql migrations utf8mb4

This commit is contained in:
Daniel_I_Am 2020-09-04 19:24:50 -04:00 committed by Solao Bajiuik
parent 7a8a31ebf8
commit 1ed3621b7e
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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();
});
}