fix: update workflow run with workflow id

This commit is contained in:
BennyKok
2023-12-10 20:59:23 +08:00
parent e5b8b4f7d9
commit ed853fc5f1
7 changed files with 377 additions and 11 deletions
+5
View File
@@ -75,6 +75,11 @@ export const workflowRunsTable = dbSchema.table("workflow_runs", {
.references(() => workflowVersionTable.id, {
onDelete: "no action",
}),
workflow_id: uuid("workflow_id")
.notNull()
.references(() => workflowTable.id, {
onDelete: "no action",
}),
machine_id: uuid("machine_id")
.notNull()
.references(() => machinesTable.id, {