Handle project key constraints on ID update