Make rev_id unique