It's thought to be the first time a council has paid compensation over sexual assaults by primary pupils.