fix(memory-jobs): align retry fk schema

This commit is contained in:
Dotta committed 2026-04-21 15:52:42 -05:00
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>()