|
|
@ -558,18 +558,12 @@ export class TablesService { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!tableCreatePayLoad.title) { |
|
|
|
|
|
|
|
NcError.badRequest('Missing table `title` property in request body'); |
|
|
|
if ( |
|
|
|
|
|
|
|
!tableCreatePayLoad.title |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
NcError.badRequest( |
|
|
|
|
|
|
|
'Missing table `title` property in request body', |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(!tableCreatePayLoad.table_name) { |
|
|
|
if (!tableCreatePayLoad.table_name) { |
|
|
|
|
|
|
|
tableCreatePayLoad.table_name = tableCreatePayLoad.title; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
if ( |
|
|
@ -623,8 +617,6 @@ export class TablesService { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const sqlMgr = await ProjectMgrv2.getSqlMgr(context, base); |
|
|
|
const sqlMgr = await ProjectMgrv2.getSqlMgr(context, base); |
|
|
|
|
|
|
|
|
|
|
|
const sqlClient = await NcConnectionMgrv2.getSqlClient(source); |
|
|
|
const sqlClient = await NcConnectionMgrv2.getSqlClient(source); |
|
|
|