1) I installed a fresh and clean instance of eZ Publish 3.10.1 via the setup wizard in order to have a new and error-free database.
2) I created a new, empty database.
3) I used the schema of database (1) to create all the required tables in database (2).
4) I copied all the data (but not the structure) from the "inconsistent" database to the new one (2). 5) I change the configuration of the "corrupt" instance so that it uses database (2) - new structure, old data - instead of the inconsistent one.
However, eZ Publish still believes that table ezurlalias_ml is inconsistent.