fix: fallback default single/multi select type to text in mysql

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2022-06-01 17:48:21 +05:30
parent d81e7bf968
commit 427c0447f7
2 changed files with 8 additions and 3 deletions

View File

@@ -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<any, any>({

View File

@@ -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';