Another change, not in this file, but in MetaDataEndpointImpl, for b/w compat: after getting the sqlDataTypeKv (line 252), you'll want to check if the maxLength==null && dataType == PDataType.BINARY, in which case you'd set the dataType = PDataType.VARBINARY instead. This will happen for already written schemas.