adding failOnError for adding unique constraint