Add unique key to token name
This commit is contained in:
parent
4d2d3cb96f
commit
bc44418152
@ -15,7 +15,7 @@ class CreateAuthTokensTable extends Migration
|
||||
{
|
||||
Schema::create('auth_tokens', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name', 255);
|
||||
$table->string('name', 255)->unique();
|
||||
$table->string('token', 255)->unique();
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user