-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(db): remove redundant index in cards #43340
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
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
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 <mail@johannesgge.de>
c664339
to
631f2b4
Compare
Follow up for #43340 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Summary
Remove index
cards_abid
becausecards_abiduri
already contains the column on the first position.TODO
Checklist