Skip to content
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 TPT support to model building, migrations and update pipeline #20938

Merged
merged 1 commit into from
May 27, 2020

Conversation

AndriySvyryd
Copy link
Member

Part of #2266

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.

20% done 🗡️

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.

(Looked through the Migrations changes)

@@ -914,21 +907,23 @@ private static bool EntityTypePathEquals(IEntityType source, IEntityType target,
return true;
}

if (!string.Equals(source.Name, target.Name))
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't this break renaming entity types?

Copy link
Member Author

Choose a reason for hiding this comment

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

This method is only used for column diffing, so as long as the type is not renamed together with a column everything should work.

Copy link
Contributor

@bricelam bricelam May 14, 2020

Choose a reason for hiding this comment

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

But renaming the type and a column is a scenario we should cover since the PK column (and others) frequently includes the type name

Copy link
Member Author

Choose a reason for hiding this comment

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

You would also need to rename a different column to what the PK column was before to hit this

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.

75/95

@smitpatel
Copy link
Contributor

It would have been better if langword changes happened in a different PR.

@ajcvickers
Copy link
Member

I feel like somebody attached a "langword" rider to the TPT bill.

Copy link
Member

@ajcvickers ajcvickers left a comment

Choose a reason for hiding this comment

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

Approve for the extensive change tracking changes.

Copy link
Contributor

@lajones lajones left a comment

Choose a reason for hiding this comment

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

Looks good. Added a few minor comments.

@AndriySvyryd
Copy link
Member Author

@bricelam Can you take a look at the last commit?

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

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.

5 participants