mysql error on content-type change: ER_FK_DUP_NAME: Duplicate FOREIGN KEY constraint name #20283
Labels
issue: bug
Issue reporting a bug
severity: medium
If it breaks the basic use of the product but can be worked around
source: core:database
Source is core/database package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
Bug report
Required System information
Describe the bug
There is no way of going further. I have to delete every table and restart but I will lose every content of course.
Steps to reproduce the behavior
First launch, after creating the first user, going to the content-type builder, I added one field, and then clicked on Save. Strapi restarts with this error:
Expected behavior
The server should restart properly and not try to create duplicated foreign keys.
Additional context
This happens with mysql, not with a file db, there is no fk in the file db...
The text was updated successfully, but these errors were encountered: