migrated db null constraints