fix(web): remove workflow fk delete cascade problem with schema migration
This commit is contained in:
1 parent
2260b4be30
commit
61498dd3f5
6 files changed
+1381
-1
No files matched your search
@@ -212,7 +212,9 @@ export const deploymentsTable = dbSchema.table("deployments", {
|
||||
.references(() => workflowVersionTable.id),
|
||||
workflow_id: uuid("workflow_id")
|
||||
.notNull()
|
||||
.references(() => workflowTable.id),
|
||||
.references(() => workflowTable.id, {
|
||||
onDelete: "cascade",
|
||||
}),
|
||||
machine_id: uuid("machine_id")
|
||||
.notNull()
|
||||
.references(() => machinesTable.id),
|
||||
|
||||
Reference in new issue
Block a user