diff --git a/CHANGELOG.md b/CHANGELOG.md index 53181a8..2671690 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * added option to generate models based on multiple databases(#144) * fixed generation of ManyToMany relations on junction tables with custom names(#151) +* fixed problems with mysql 8 ## 0.3.1 * Fixed npx ussage(#146) diff --git a/src/drivers/MysqlDriver.ts b/src/drivers/MysqlDriver.ts index 62c71ea..6623b21 100644 --- a/src/drivers/MysqlDriver.ts +++ b/src/drivers/MysqlDriver.ts @@ -181,6 +181,8 @@ export class MysqlDriver extends AbstractDriver { colInfo.tsType = "string"; break; case "geometrycollection": + case "geomcollection": + colInfo.options.type = "geometrycollection"; colInfo.tsType = "string"; break; default: