error/moodle/ddldependencyerror
From MoodleDocs
One reason for this error is that some upgrade code is trying to modify a field that has an index attached to it.
When a developer wants to change a field like this they should:
- drop the index first, then
- modify the field, and then
- re-create the index.