For fields with '| null' in the TS type, the column type needs to be specified explicitly in column options when using MySQL. See: https://github.com/typeorm/typeorm/issues/1358#issuecomment-391736766