Skip to content

Handle composite primary keys with line breaks#164

Merged
coding-chimp merged 2 commits intomasterfrom
bb/primary-key-with-line-breaks
Jul 23, 2024
Merged

Handle composite primary keys with line breaks#164
coding-chimp merged 2 commits intomasterfrom
bb/primary-key-with-line-breaks

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
@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