8def548b8d
Several tables have had unique keys added to enforce a constraint that should always have been there. It is possible for old sites to have data that violate the constraints, and sometimes people want to backup data from those old sites, and restore them into a new Moodle. Therefore, we need to guard agains the unique key violation errors.