Changed log_domain_id to domain_id on constraint.