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

TASK: Check if index need to be renamed #5446

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

dlubitz
Copy link
Contributor

@dlubitz dlubitz commented Jan 22, 2025

In some instances the index is already renamed. This PR adds a check if this is the case and skips the migration in these cases.

resolves #5445

Copy link
Member

@kdambekalns kdambekalns left a comment

Choose a reason for hiding this comment

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

👍 by 👀

@mhsdesign mhsdesign requested a review from Sebobo January 27, 2025 08:36
Copy link
Member

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

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

By reading 👀

and as it was written in slack the reason for this is:

it might be an external package that accidentially put this line already into one of their migrations

And we dont split the drop and add index into separate conditions because

They don't work split up.
The index is used on a foreign key field. So you have to remove+add in one statement.

@dlubitz dlubitz merged commit 15af3a5 into neos:8.3 Jan 27, 2025
12 checks passed
@dlubitz dlubitz deleted the task/check-index-before-renaming branch January 27, 2025 09:23
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.

3 participants