8000 Handle composite primary keys with line breaks by coding-chimp · Pull Request #164 · Shopify/lhm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Handle composite primary keys with line breaks #164

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 2 commits into from
Jul 23, 2024

Conversation

coding-chimp
Copy link
@coding-chimp coding-chimp commented Jul 23, 2024

We've encountered problems with composite primary keys, including varchar columns with values that have line breaks. The regex used to ignore primary key duplicate warnings can't handle the line breaks, which leads to LHM aborting completely safe migrations.

This PR rejiggers the warning matching to avoid this.

@coding-chimp coding-chimp force-pushed the bb/primary-key-with-line-breaks branch from 290146a to d753bbf Compare July 23, 2024 07:44
@coding-chimp coding-chimp requested a review from a team July 23, 2024 07:44
@coding-chimp coding-chimp marked this pull request as ready for review July 23, 2024 07:44
@coding-chimp coding-chimp merged commit 1344ebe into master Jul 23, 2024
52 checks passed
@coding-chimp coding-chimp deleted the bb/primary-key-with-line-breaks branch July 23, 2024 09:53
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.

2 participants
0