From e7cff840acbc729c0925aff61cdb0a368b569df5 Mon Sep 17 00:00:00 2001 From: Samarpan Bhattacharya Date: Wed, 15 Nov 2023 18:32:41 +0530 Subject: [PATCH] fix: return enum type (test) --- lib/discovery.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/discovery.js b/lib/discovery.js index 5963f3f1..a9cf6c2c 100644 --- a/lib/discovery.js +++ b/lib/discovery.js @@ -340,7 +340,6 @@ function mixinDiscovery(MySQL, mysql) { case 'MEDIUMTEXT': case 'LONGTEXT': case 'TEXT': - case 'ENUM': case 'SET': return 'String'; case 'TINYBLOB': @@ -380,6 +379,8 @@ function mixinDiscovery(MySQL, mysql) { case 'BOOL': case 'BOOLEAN': return 'Boolean'; + case 'ENUM': + return columnType; default: return 'String'; }