Skip to content

[2.0] Migration error #76

@connor-devuk

Description

@connor-devuk

PHP & Platform

8.3 MacOS Sonoma 14.4.4

Database

MySQL 8.0.33

Laravel version

10.43.0

Have you done this?

  • I have checked my logs and I'm sure is a bug in this package.
  • I can reproduce this bug in isolation (vanilla Laravel install)
  • I can suggest a workaround as a Pull Request

Expectation

When I run the migrations I expect it to add all the 2fa table without erroring

Description

After running the migrations command I get this MySQL Error:

SQLSTATE[42000]: Syntax error or access violation: 1059 Identifier name 'two_factor_authentications_authenticatable_type_authenticatable_id_index' is too long (Connection: mysql, SQL: alter table two_factor_authentications add index two_factor_authentications_authenticatable_type_authenticatable_id_index(authenticatable_type, authenticatable_id))

Reproduction

php artisan two-factor:install
php artisan migrate

Stack trace & logs

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions