From f8e39c33041b166c8c2fc29f7425b4eea4352d56 Mon Sep 17 00:00:00 2001 From: Kononnable Date: Sat, 9 Mar 2019 22:22:07 +0100 Subject: [PATCH] more fixes on mysql8 --- CHANGELOG.md | 1 + src/drivers/MysqlDriver.ts | 2 ++ 2 files changed, 3 insertions(+) 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: