Skip to content

Commit

Permalink
[2.x] Fixes database index name being too long (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter authored Mar 15, 2024
1 parent c75a373 commit d11349d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions MIGRATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ All customizable models can be configured with additional fillable, guarded, hid

Customize the model using the available static properties:

- `$useConnection`: The connection name to use.
- `$useCasts`: The casts attributes to merge.
- `$useFillable`: The fillable attributes to merge.
- `$useGuarded`: The guarded attributes to merge.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"illuminate/http": "10.*|11.*",
"illuminate/session": "10.*|11.*",
"illuminate/support": "10.*|11.*",
"laragear/meta-model": "1.*"
"laragear/meta-model": "^1.1"
},
"require-dev": {
"ext-sodium": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/Migrations/WebAuthnAuthenticationMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function create(Blueprint $table): void
// on the Assertion procedure as the device returns which credential it used.
$table->string('id', 510)->primary();

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

// When requesting to create a credential, the app will set a "user handle" to be
// a UUID to anonymize the user personal information. If a second credential is
Expand Down

0 comments on commit d11349d

Please sign in to comment.