diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250852-theme-editor.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts similarity index 94% rename from packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250852-theme-editor.ts rename to packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts index 3ca54b9ca..c9423b788 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250852-theme-editor.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts @@ -17,12 +17,8 @@ export default class ThemeEditorMigration extends Migration { } const collection = this.db.getCollection('themeConfig'); - if (!collection.hasField('uid')) { - collection.addField('uid', { - type: 'uid', - }); - } - collection.sync(); + + await collection.sync(); const themes = { [defaultTheme.uid]: defaultTheme,