-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Migrations: Support removing IDENTITY from a column #3993
Comments
Notes for triage: If I remember right, we're mimicking EF6 behavior because removing |
BTW, we said in the past that we wanted to give the user some kind of warning rather than silently ignoring changes that would cause table rebuilds. |
Dependent upon #329 |
This seems to be a dupe since we have decided to warn for RTM (tracked in #4783) and we need table rebuilds to work for any further improvement (tracked in #329). cc @rowanmiller |
Closing as a dupe of #5345. We throw now. |
When an SQL table is created with Id column it gets IDENTITY by default. Adding a
ValueGeneratedNever
method call later generates a migration which does not remove this clause.Example repo. It has two migrations - Initial will generate a table with an Identity column. The second one was supposed to remove that Identity.
The text was updated successfully, but these errors were encountered: