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

XMLDB Check indexes error #433

Open
levemar opened this issue Jan 12, 2023 · 0 comments
Open

XMLDB Check indexes error #433

levemar opened this issue Jan 12, 2023 · 0 comments

Comments

@levemar
Copy link
Contributor

levemar commented Jan 12, 2023

When you upgrade student quiz from an earlier version, and you go to XMLDB editor > Check indexes, it displays an error that there is a missing index.

To reproduce, in Moodle 3.11 (although you can have the same error after upgrading both Moodle and Student quiz from 3.11 to 4.x, it is easier to explain using a single moodle version) :

  • Install studentquiz v4.6.0 (or some other earlier versions)
  • In site administration, go to XMLDB editor and click on Check indexes
  • Everything is fine for the state_history table :
    image
  • Upgrade studentquiz to v4.7.1 (for example)
  • There are now some errors :
    image
    image

This probably has to do with this dropping of the index in upgrade.php
image

Maybe it was not the good way to drop the index? Or it indicates that something should also be changed in install.xml?

Thanks,
Marie-Eve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant