Skip to content

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

Merged
merged 1 commit into from
Feb 13, 2020
Merged

Add a relational model API #19896

merged 1 commit into from
Feb 13, 2020

Conversation

AndriySvyryd
Copy link
Member

Use the new model in migrations and update pipeline

Part of #12846, #2725, #8258, #15671, #17270

@smitpatel
Copy link
Contributor

Use the new model in migrations and update pipeline

Why not in query pipeline? 😢

@AndriySvyryd
Copy link
Member Author

Why not in query pipeline?

Trying to keep the PR smaller

Copy link
Contributor

@bricelam bricelam left a 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;
Copy link
Contributor

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

Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

@smitpatel smitpatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Use the new model in migrations and update pipeline

Part of #12846, #2725, #8258, #15671, #17270
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants