add not null constraint after populating columns