-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration not doing anything for change of varchar length #31
Comments
That's odd. I was able to reproduce this, and confirmed that the alter statement is being generated by our EF provider, but not getting sent to the server. I added this silly
And that caused the alter column command to be sent to the DB. @how02 do you think this is our bug, or something upstream? I didn't see any sort of explicit "commit" type operation for any of the other ops. |
+1 for this. I noticed the problem with a property like this: and did a Add-Migration it created the following: but did not have an effect when applying Update-Database. If I delete all migrations and create a new one the tables are created properly (still not by respecting the property, but due to the fluent api commands). |
I am experiencing exactly the same. The migration itself looks fine with the +1 |
+1 |
This library hasn't been maintained for years. I would suggest using one of the providers on this page: https://docs.microsoft.com/en-us/ef/core/providers/?tabs=dotnet-core-cli |
I had a property which was a "string" and this of course created a varchar(255) in MySQL. After realizing that I needed more space, I added the following fluent:
Then I ran add-migration and saw that it generated this:
However, when I run update-database, nothing changes in MySQL. I repeated all the steps and logged all the queries and there is only this one:
No alter query seems to be generated...
The text was updated successfully, but these errors were encountered: