From 2ea185a4122453b1f732d60e5fe809a906dca929 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 15 Nov 2022 16:14:47 +0800 Subject: [PATCH] fix: error: SQLITE_ERROR: near "AUTOINCREMENT": syntax error --- .../extensions/assignees/collections/users_jobs.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/plugins/workflow/src/server/extensions/assignees/collections/users_jobs.ts b/packages/plugins/workflow/src/server/extensions/assignees/collections/users_jobs.ts index ff28a6a4f..26b0811c3 100644 --- a/packages/plugins/workflow/src/server/extensions/assignees/collections/users_jobs.ts +++ b/packages/plugins/workflow/src/server/extensions/assignees/collections/users_jobs.ts @@ -9,6 +9,16 @@ export default { primaryKey: true, autoIncrement: true }, + { + type: 'integer', + name: 'userId', + primaryKey: false, + }, + { + type: 'integer', + name: 'jobId', + primaryKey: false, + }, { type: 'belongsTo', name: 'job'