feat(database): add automatic migration on startup and enhance text analysis cache source
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "text_analysis_cache" DROP CONSTRAINT IF EXISTS "text_analysis_cache_source_check";--> statement-breakpoint
|
||||
ALTER TABLE "text_analysis_cache" ADD CONSTRAINT "text_analysis_cache_source_check" CHECK ("source" IN ('local', 'nvidia', 'primary_ai', 'groq', 'vision_llm'));--> statement-breakpoint
|
||||
@@ -36,6 +36,13 @@
|
||||
"when": 1780218363790,
|
||||
"tag": "0005_optimize-message-index",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 6,
|
||||
"version": "7",
|
||||
"when": 1780218363791,
|
||||
"tag": "0006_fix_text_analysis_cache_source",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user