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

Refactor comment removal #16808

Closed
wants to merge 1 commit into from
Closed

Refactor comment removal #16808

wants to merge 1 commit into from

Conversation

roji
Copy link
Member

@roji roji commented Jul 28, 2019

Closes #16799

@@ -1648,14 +1648,16 @@ protected virtual IUpdateSqlGenerator SqlGenerator
/// <param name="model"> The target model which may be <c>null</c> if the operations exist without a model. </param>
/// <param name="builder"> The command builder to use to build the commands. </param>
/// <param name="comment"> The comment to be applied. </param>
/// <param name="oldComment"> The previous comment. </param>
/// <param name="schema"> The schema of the table. </param>
/// <param name="table"> The name of the table. </param>
/// <param name="columnName"> The column name if comment is being applied to a column. </param>
protected virtual void GenerateComment(
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we even have this template method? It seems to bring with it a lot of SQL Server-specific assumptions.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm honestly not convinced. I already started a wider refactor (and then stopped), where we had separate methods for column, table (and possibly also index). Anyway, take a look at the whole thing and let's see where we go from there.

@roji
Copy link
Member Author

roji commented Jul 29, 2019

Will resubmit a more complete refactor/fix.

@roji roji closed this Jul 29, 2019
@smitpatel smitpatel deleted the CommentRemoval branch July 30, 2019 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Comment removal in migrations
2 participants