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

Add api to check for missing indices #16145

Merged
merged 1 commit into from
Dec 23, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Adds an api to check for missing mysql indices. Currently there is an api to attempt to update / repair them but not just to check. This adds that.

Before

No api to get a list of missing indices

After

$missingIndices = civicrm_api3('System', 'getmissingindices', [])['values'];

Technical Details

I intend for follow up with fixes so a single table can be queried and potentially repaired

Comments

@civibot
Copy link

civibot bot commented Dec 22, 2019

(Standard links)

@eileenmcnaughton
Copy link
Contributor Author

See follow up #16146

@eileenmcnaughton
Copy link
Contributor Author

test this please

@seamuslee001
Copy link
Contributor

This looks fine to me, merge on pass

@eileenmcnaughton eileenmcnaughton merged commit d1dd266 into civicrm:master Dec 23, 2019
@colemanw colemanw deleted the index_api branch December 26, 2019 18:36
@colemanw
Copy link
Member

Hmm, I think new apis should be added to v4 instead of v3.

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