Auto-generated FK names don't match MySQL for renamed tables #7959
Labels
correctness
We don't return the same result as MySQL
customer issue
enhancement
New feature or request
In MySQL, if you rename a table, any autogenerated foreign keys will be renamed as well to match the new table name. This is not the case with Dolt, making it harder to write migrations operating on previously renamed tables that work with both MySQL and Dolt.
MWE, works with Percona Server 8.3, but fails with Dolt at
DROP FOREIGN KEY
because the FK is still namedb_test_ibfk_1
instead ofc_test_ibfk_1
.The text was updated successfully, but these errors were encountered: