Set upsert flag in update.