canyon icon indicating copy to clipboard operation
canyon copied to clipboard

新建项目->创建失败,报错提示Project数据表缺少字段instrument_cwd

Open imath60 opened this issue 8 months ago • 1 comments

1、复现步骤:点击创建,页面报错提示如下: image

2、接口返回如下:

{ "errors": [ { "message": "\nInvalid this.prisma.project.create()invocation in\n/Users/liuyuan9/workspace/github/canyon/packages/canyon-backend/dist/project/services/project.service.js:52:36\n\n 49 }\n 50 async createProject(user, projectID, language) {\n 51 const { path_with_namespace, description, name, bu } = await (0, gitlab_adapter_1.getProjectByID)(projectID.split('-')[1], 'accessToken');\n→ 52 return this.prisma.project.create(\nThe columninstrument_cwddoes not exist in the current database.", "locations": [ { "line": 2, "column": 3 } ], "path": [ "createProject" ], "extensions": { "code": "INTERNAL_SERVER_ERROR", "stacktrace": [ "PrismaClientKnownRequestError: ", "Invalidthis.prisma.project.create()invocation in", "/Users/liuyuan9/workspace/github/canyon/packages/canyon-backend/dist/project/services/project.service.js:52:36", "", " 49 }", " 50 async createProject(user, projectID, language) {", " 51 const { path_with_namespace, description, name, bu } = await (0, gitlab_adapter_1.getProjectByID)(projectID.split('-')[1], 'accessToken');", "→ 52 return this.prisma.project.create(", "The columninstrument_cwd does not exist in the current database.", " at si.handleRequestError (/Users/liuyuan9/workspace/github/canyon/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:125:6817)", " at si.handleAndLogRequestError (/Users/liuyuan9/workspace/github/canyon/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:125:6151)", " at si.request (/Users/liuyuan9/workspace/github/canyon/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:125:5859)", " at async l (/Users/liuyuan9/workspace/github/canyon/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:130:9805)", " at async target (/Users/liuyuan9/workspace/github/canyon/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/helpers/external-context-creator.js:74:28)", " at async Object.createProject (/Users/liuyuan9/workspace/github/canyon/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/helpers/external-proxy.js:9:24)" ] } } ], "data": null } 3、相关代码及数据库表 3.1、数据模型 image 3.2、数据表 image

imath60 avatar Jun 20 '24 02:06 imath60