this does need to be modified to nullable so drop the constraint before trying to change it
import IntegrityError before trying to use it