Unique indexes correctly updated on deletions.