You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root cause being that both table some_type and some define a foreign key constraint auto-named as "FK_SOME_TYPE_ID_ID"
At a minimum, the target table name should be part of the automatically generated constraint name, although even then a naming conflict may be possible. The preferred solution would be to support custom foreign key names, as per #510. That issue is labeled as "good-first-issue" and I looked into how that could be accomplished, but I could not get the local Gradle build to work on my Mac; it hangs with
Exception in thread "driver_launched_mysqld_1" com.mysql.management.util.WrappedException: java.io.IOException: Cannot run program "[...]test-c.mxj/mysql-c.mxj/bin/mysqld": error=86, Bad CPU type in executable
Do you have a "Contributor Guide" somewhere? This is empty.
The text was updated successfully, but these errors were encountered:
Thank you for a report, in the next release, there will be the possibility to define foreign keys names.
I'll actualize the wiki page soon, but could you tell me which MacOS version do you use as I run tests via Gradle on El Capitan 10.11.6 without any problems.
This is a follow-up to #510 and #701. The current strategy for auto-naming foreign key constraints can fail for a particular combination of table names and column names (and does for us). Given these table definitions:
this test will fail:
with:
The root cause being that both table
some_type
andsome
define a foreign key constraint auto-named as "FK_SOME_TYPE_ID_ID"At a minimum, the target table name should be part of the automatically generated constraint name, although even then a naming conflict may be possible. The preferred solution would be to support custom foreign key names, as per #510. That issue is labeled as "good-first-issue" and I looked into how that could be accomplished, but I could not get the local Gradle build to work on my Mac; it hangs with
Do you have a "Contributor Guide" somewhere? This is empty.The text was updated successfully, but these errors were encountered: