Browse Source

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

Signed-off-by: Pranav C <pranavxc@gmail.com>
feat/0523-export-schema
Pranav C 3 years ago committed by Raju Udava
parent
commit
3fa252a0b4
  1. 7
      packages/nocodb-sdk/src/lib/Api.ts
  2. 4
      packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts

7
packages/nocodb-sdk/src/lib/Api.ts

@ -3512,7 +3512,12 @@ export class Api<
*/ */
uploadByUrl: ( uploadByUrl: (
query: { path: string }, query: { path: string },
data: { url?: string }[], data: {
url?: string;
fileName?: string;
mimetype?: string;
size?: string;
}[],
params: RequestParams = {} params: RequestParams = {}
) => ) =>
this.request<any, any>({ this.request<any, any>({

4
packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts

@ -976,10 +976,10 @@ export class MysqlUi {
colProp.dtxp = 1; colProp.dtxp = 1;
break; break;
case 'MultiSelect': case 'MultiSelect':
colProp.dt = 'set'; colProp.dt = 'text';
break; break;
case 'SingleSelect': case 'SingleSelect':
colProp.dt = 'enum'; colProp.dt = 'text';
break; break;
case 'Collaborator': case 'Collaborator':
colProp.dt = 'varchar'; colProp.dt = 'varchar';

Loading…
Cancel
Save