Skip to content

Commit ba6523f

Browse files
authored
rename the index of columns and keys to fix migration name too long issue (#98)
* rename the index of columns and keys to fix migration name too long issue * remove igniter/igniterlabs prefix from the index names
1 parent 58fac6e commit ba6523f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/migrations/2020_05_18_000300_create_access_tokens_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public function up(): void
1515
{
1616
Schema::create('igniter_api_access_tokens', function(Blueprint $table): void {
1717
$table->bigIncrements('id');
18-
$table->morphs('tokenable');
18+
$table->morphs('tokenable', 'api_access_tokens_tokenable');
1919
$table->string('name');
20-
$table->string('token', 64)->unique();
20+
$table->string('token', 64)->unique('api_access_tokens_token_unique');
2121
$table->text('abilities')->nullable();
2222
$table->timestamp('last_used_at')->nullable();
2323
$table->timestamps();

0 commit comments

Comments
 (0)