Add not null constraint on log_parts(log_id)