Image and oldimage tables lack primary keys. Therefore, img_id and oi_id should be added. There is a comment in LocalFile::recordUpload2() noting, "# TODO: the image/oldimage tables should be like page/revision with an ID field".
Version: 1.25-git
Severity: enhancement