Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

MYSQL - "Identifier name 'components_restaurant_related_restaurants_restaurants_links_inv_fk' is too long" #128

@semucarusi

Description

@semucarusi

Bug report

Describe the bug

"Identifier name 'components_restaurant_related_restaurants_restaurants_links_inv_fk' is too long",

Steps to reproduce the behavior

Just Change the database from sqlite to MySQL and try to start the application.

The complete error trace is the following:

code: 'ER_TOO_LONG_IDENT',
errno: 1059,
sqlMessage: "Identifier name 'components_restaurant_related_restaurants_restaurants_links_inv_fk' is too long",
sqlState: '42000',
index: 0,
sql: 'alter table components_restaurant_related_restaurants_restaurants_links add index components_restaurant_related_restaurants_restaurants_links_inv_fk(restaurant_id)'
}

System

Node.js version: 16.7.0
Strapi version: 4.10.7
Database: MYSQL 5.7
Operating system: MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions