Bug #89586 | .Net Core2 EF MySQL having issue while changing foreign key column to nullable | ||
---|---|---|---|
Submitted: | 8 Feb 2018 9:45 | Modified: | 13 Feb 2018 6:13 |
Reporter: | Harshvardhan Sharma | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Connector / NET | Severity: | S1 (Critical) |
Version: | 6.10.6 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | .NetCore, connector, MySQL, MySql.Data.EntityFrameworkCore |
[8 Feb 2018 9:45]
Harshvardhan Sharma
[8 Feb 2018 9:47]
Harshvardhan Sharma
I have also reported this issue on StackOverFlow: https://stackoverflow.com/questions/48679013/net-core2-ef-mysql-having-issue-while-changin...
[9 Feb 2018 5:53]
Harshvardhan Sharma
One more thing I would like share that when I use the Pomelo connecter for the same , it is working fine. But I want to use the MySQL default connector as the project is very large and long-term, so cannot trust on any third party tool.
[13 Feb 2018 6:13]
Chiranjeevi Battula
Hello Harshvardhan, Thank you for the bug report. Verified based on internal discussion with dev's. Thanks, Chiranjeevi.
[3 Sep 2019 9:02]
Senol Kurt
I've got almost the same problem. I want to change foreign key on delete action property from "cascade" to "restrict". I typed the required codes and added a new migration but I got { "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CONSTRAINT `FK_AspNetRoleClaims_AspNetRoles_RoleId`' at line 1" } error while updating database. The process worked with SQL Server but not worked with MySql.