ILIAS has a great UI installer and database updater. When it fails, the error is not only presented in every detail, including an interactive stack trace, it also provides handy links for searing the web for descriptions of instances of the same error. Everything is presented in a modern eye-candy fashion. Awesome!
Running database update #4847, we experienced an error:
Integrity constraint violation: 1062 Duplicate entry '90262-908261' for key 'PRIMARY'
Wooopsie. There were duplicate entries in our table page_question
- we identified the affected table by returning to the installer in showing the next update step. No problem, right? Just get rid of one of those 90262-908261 entries.
To our surprise, there was no entry page_id=90262 and question_id=908261, nor vice versa, nor mixed with null values. So we fired the following query: