Schema: prevent job state_prev being NULL