MDL-65959 core_badges: fix unique index in upgrade.php