fix: collection remove field after migrated

This commit is contained in:
chenos 2023-09-13 17:21:42 +08:00
parent a564f78872
commit 6a7240816e

View File

@ -22,6 +22,7 @@ export default class extends Migration {
const exists = await field.existsInDb({ transaction }); const exists = await field.existsInDb({ transaction });
if (!exists) { if (!exists) {
collection.removeField('uiSchemaUid');
return; return;
} }