mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 05:11:49 +01:00
fix(memory-jobs): align retry fk schema
This commit is contained in:
1 parent
7aac0d73bc
commit
071d20974b
2 files changed
+4
-2
No files matched your search
@@ -148,7 +148,7 @@
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onDelete": "set null",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"activity_log_agent_id_agents_id_fk": {
|
||||
|
||||
@@ -54,7 +54,9 @@ export const memoryExtractionJobs = pgTable(
|
||||
error: text("error"),
|
||||
sourceKind: text("source_kind").$type<MemoryExtractionJobSourceKind>().notNull(),
|
||||
sourceRefJson: jsonb("source_ref_json").$type<Record<string, unknown>>(),
|
||||
retryOfJobId: uuid("retry_of_job_id").references((): AnyPgColumn => memoryExtractionJobs.id),
|
||||
retryOfJobId: uuid("retry_of_job_id").references((): AnyPgColumn => memoryExtractionJobs.id, {
|
||||
onDelete: "set null",
|
||||
}),
|
||||
attemptNumber: integer("attempt_number").notNull().default(1),
|
||||
dispatcherKind: text("dispatcher_kind")
|
||||
.$type<MemoryExtractionJobDispatcherKind>()
|
||||
|
||||
Reference in new issue
Block a user