-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Remove duplicate index #9510
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
Remove duplicate index #9510
Conversation
Codecov Report
@@ Coverage Diff @@
## 3.3 #9510 +/- ##
============================================
+ Coverage 38.73% 38.75% +0.01%
- Complexity 34025 34036 +11
============================================
Files 1988 1989 +1
Lines 105177 105208 +31
============================================
+ Hits 40740 40773 +33
+ Misses 64437 64435 -2
|
@mautic/acquia-po we will need someone to rebase this one as it is on an Acquia fork rather than a personal fork. Maybe @lijupm you could take a look? |
d49d18e
to
eba584a
Compare
…s_xref, email_list_xref
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this PR, what cause this issue?
I've tested migration, it remove index from email_assets_xref,
But as as I read the code, migration should cover also email_list_xref, shouldn't it?
…ableIndexForColumn()
@kuzmany you are right. The migration for |
@fedys can you get me more context of issue If we have index on email column in email_assets_xref ? |
…dex on 'email_id' column in 'email_list_xref' table
…x name, simply hardcode the index name
Thank you for your contribution! We require all contributors to sign our Contributor License Agreement, and we do not have a record of your signature on file. In order for us to review and merge your code, please head over to https://www.mautic.org/contributor-agreement and complete the form. There may be a short delay while the team add you as a contributor - please be patient :). Any problems contact the Product Team on Slack (get an invite at https://mautic.org/slack). CLA has not been signed by @rohit3nov. |
@kuzmany The index consisting of single |
@fedys the we should remove index also for asset_id - that column is also primary Shouldn't it? Just asking :) |
@kuzmany It is not possible to remove the index for In this scenario if you tried removing that index, DB wouldn't allow that as every foreign key needs an index. |
@fedys thank you for make it clear for me. I appreciate it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me 👍
@cla-bot check |
The CLA Bot has been sent on a mission to check against the latest list and will be back shortly with its findings! |
There is a schema migration. @RCheesley can we tag it to patch release anyway or do we need to wait next minor ? |
As a bug fix we can go with the next patch release but let's just double check that the migration is sound before we merge. |
Description:
This task is to remove duplicate index (email) in email_assets_xref.
Steps to reproduce the bug:
Steps to test this PR: