added check for existence of column in migration