Browse Source

fix: add warning for migration skip log

pull/7439/head
mertmit 10 months ago
parent
commit
d3620f7fc3
  1. 13
      packages/nocodb/src/modules/jobs/jobs/at-import/at-import.processor.ts

13
packages/nocodb/src/modules/jobs/jobs/at-import/at-import.processor.ts

@ -221,6 +221,7 @@ export class AtImportProcessor {
rtc.migrationSkipLog.log.push( rtc.migrationSkipLog.log.push(
`tn[${tbl}] cn[${col}] type[${type}] :: ${reason}`, `tn[${tbl}] cn[${col}] type[${type}] :: ${reason}`,
); );
logWarning(`Skipped ${tbl} :: ${col} (${type}) :: ${reason}`);
}; };
// mapping table // mapping table
@ -545,7 +546,7 @@ export class AtImportProcessor {
tblSchema[i].name, tblSchema[i].name,
ncName.title, ncName.title,
col.type, col.type,
'column type not supported', 'column type not supported yet',
); );
continue; continue;
} }
@ -1144,7 +1145,7 @@ export class AtImportProcessor {
srcTableSchema.title, srcTableSchema.title,
aTblColumns[i].name, aTblColumns[i].name,
aTblColumns[i].type, aTblColumns[i].type,
`rollup function ${aTblColumns[i].typeOptions.formulaTextParsed} not supported`, `rollup function ${aTblColumns[i].typeOptions.formulaTextParsed} not supported yet`,
); );
continue; continue;
} }
@ -1206,7 +1207,7 @@ export class AtImportProcessor {
srcTableSchema.title, srcTableSchema.title,
aTblColumns[i].name, aTblColumns[i].name,
aTblColumns[i].type, aTblColumns[i].type,
'rollup referring to a column type not supported currently', 'rollup referring to a column type not supported yet',
); );
continue; continue;
} }
@ -2054,7 +2055,7 @@ export class AtImportProcessor {
await sMap.getNcNameFromAtId(viewId), await sMap.getNcNameFromAtId(viewId),
colSchema.title, colSchema.title,
colSchema.uidt, colSchema.uidt,
`filter config skipped; filter over date datatype not supported`, `filter config skipped; filter over date datatype not supported yet`,
); );
continue; continue;
} }
@ -2193,7 +2194,7 @@ export class AtImportProcessor {
await sMap.getNcNameFromAtId(viewId), await sMap.getNcNameFromAtId(viewId),
colSchema.title, colSchema.title,
colSchema.uidt, colSchema.uidt,
`group config skipped; group over ${datatype} not supported`, `group config skipped; group over ${datatype} not supported yet`,
); );
continue; continue;
} }
@ -2350,8 +2351,8 @@ export class AtImportProcessor {
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
try { try {
logBasic('SDK initialized'); logBasic('SDK initialized');
logDetailed('Base initialization started'); logDetailed('Base initialization started');
// delete base if already exists
logDetailed('Base initialized'); logDetailed('Base initialized');

Loading…
Cancel
Save