Skip to content

Commit

Permalink
Merge pull request #77 from Laragear/fix/morph-index
Browse files Browse the repository at this point in the history
[2.x] Fixes index name being too large.
  • Loading branch information
DarkGhostHunter authored Mar 29, 2024
2 parents a37cab0 + 975611e commit 10b658e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"require": {
"php": "^8.1",
"ext-json": "*",
"laragear/meta-model": "1.*",
"laragear/meta-model": "^1.1",
"laragear/meta": "3.*",
"bacon/bacon-qr-code": "2.*",
"paragonie/constant_time_encoding": "^2.6",
Expand Down
2 changes: 1 addition & 1 deletion src/Migrations/TwoFactorAuthenticationMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function create(Blueprint $table): void
{
$table->id();

$this->createMorph($table, 'authenticatable');
$this->createMorph($table, 'authenticatable', 'two_factor_authenticatable_index');

$table->text('shared_secret');
$table->timestampTz('enabled_at')->nullable();
Expand Down

0 comments on commit 10b658e

Please sign in to comment.