diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts index d3d3d5d044..77774de137 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts @@ -334,8 +334,8 @@ export class PluginMockCollectionsServer extends Plugin { }); await client.connect(); - await client.query(`DROP DATABASE IF EXISTS ${externalDB}`); - await client.query(`CREATE DATABASE ${externalDB}`); + await client.query(`DROP DATABASE IF EXISTS "${externalDB}"`); + await client.query(`CREATE DATABASE "${externalDB}"`); await client.end(); // import sql import external database