-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(db): remove redundant index in cards #43340
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
Conversation
|
|
||
| $tableCards = $schema->getTable('cards'); | ||
|
|
||
| if ($tableCards->hasIndex('cards_abid')) { |
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.
| if ($tableCards->hasIndex('cards_abid')) { | |
| if ($tableCards->hasIndex('cards_abiduri')) && | |
| ($tableCards->hasIndex('cards_abid')) { |
Maybe double check?
5a83555 to
c664339
Compare
st3iny
left a comment
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.
Looks good
ChristophWurst
left a comment
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.
Comment out the index creation in \OCA\DAV\Migration\Version1004Date20170924124212::changeSchema to avoid creating and dropping the index for new installations
Signed-off-by: Johannes Merkel <[email protected]>
c664339 to
631f2b4
Compare
Follow up for #43340 Signed-off-by: Daniel Kesselberg <[email protected]>
Summary
Remove index
cards_abidbecausecards_abidurialready contains the column on the first position.TODO
Checklist