-
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
Handle redundant PK indexes in RelationalScaffoldingModelFactory #3664
Comments
cc @lajones Did you already start work on something similar to this? |
@natemcmaster sorry, no, can't find anything on that. |
Currently Sqlite doesn't filter Indexes defined on PK (#3642) unless it has been fixed. |
@natemcmaster Actually I did not filter them out, and it did not affect Fluent API scaffolding!? |
Created a task to look at the all-up design around indexes (and listed this as an item that needs attention). |
Note: we do filter out indexes which match the PK properties much later in the process in |
Great, as noted this works fine for me! |
Most databases contain a unique index to represent primary key constraint. Currently, SqlServer and Sqlite filter these indexes at the DatabaseModelFactory so that RelationalScaffoldingModelFactory does not add these to the scaffolding model. It would be more useful to prevent adding this redundant indexes to the ScaffoldingModel in our base implementation (RelationalScaffoldingModelFactory).
The text was updated successfully, but these errors were encountered: