change NOT NULL => NULL for foreign keys