-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add a relational model API #19896
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
Add a relational model API #19896
Conversation
Why not in query pipeline? 😢 |
Trying to keep the PR smaller |
d128173
to
f7f0d9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We have an issue to re-think the migration's backing model, right?
if (!source.IsMigratable | ||
|| !target.IsMigratable) | ||
{ | ||
yield break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably worth adding extension methods like GetMigratableTables to filter these out earlier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this condition might be wrong. What if an entity type becomes (or stops being) migratable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's why they are not filtered out early. This way if it becomes (or stops being) migratable migrations won't try to create or delete the table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f7f0d9a
to
4c63114
Compare
Use the new model in migrations and update pipeline
Part of #12846, #2725, #8258, #15671, #17270