Fix a bug where pre-existing uniq indexes were not being removed on update