From 3fa252a0b4b06b13996049f95c319cc682695492 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 1 Jun 2022 17:48:21 +0530 Subject: [PATCH] fix: fallback default single/multi select type to `text` in mysql Signed-off-by: Pranav C --- packages/nocodb-sdk/src/lib/Api.ts | 7 ++++++- packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index afe66c7ff2..fd93432616 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -3512,7 +3512,12 @@ export class Api< */ uploadByUrl: ( query: { path: string }, - data: { url?: string }[], + data: { + url?: string; + fileName?: string; + mimetype?: string; + size?: string; + }[], params: RequestParams = {} ) => this.request({ diff --git a/packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts b/packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts index 864dc8954b..ab1e268818 100644 --- a/packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts +++ b/packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts @@ -976,10 +976,10 @@ export class MysqlUi { colProp.dtxp = 1; break; case 'MultiSelect': - colProp.dt = 'set'; + colProp.dt = 'text'; break; case 'SingleSelect': - colProp.dt = 'enum'; + colProp.dt = 'text'; break; case 'Collaborator': colProp.dt = 'varchar';