create a migrations for database protection against null value