Updated foreign key constraints.