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

Trim AUTO_INCREMENT values from MySQL schema dumps #319

Merged
merged 8 commits into from Sep 23, 2022

Conversation

shames0
Copy link
Contributor

@shames0 shames0 commented Sep 20, 2022

closes #56

}

// TrimAutoincrementValues removes AUTO_INCREMENT values from MySQL schema dumps
func TrimAutoincrementValues(data []byte) []byte {
Copy link
Owner

Choose a reason for hiding this comment

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

I think this can start with a lowercase letter since it does not need to be exported?

@amacneil
Copy link
Owner

Looks like a great start. Can you also add some tests for it?

@shames0
Copy link
Contributor Author

shames0 commented Sep 20, 2022

Thanks for the feedback, I'll look at adding tests later this evening.

@shames0
Copy link
Contributor Author

shames0 commented Sep 22, 2022

Tests added, ready for any other feedback you might have. This is my first time writing GO... so feel free to nudge me toward best practices.

@amacneil
Copy link
Owner

thank you!

@amacneil amacneil merged commit 3f6169a into amacneil:main Sep 23, 2022
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.

schema dump includes AUTO INCREMENT
2 participants