Added lines to migration script to fix when value is none