mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(migrations): add missing migration for document table (#1080)
* fix(migrations): add missing migration for document table * add newline at end of file
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_status" text DEFAULT 'pending' NOT NULL;
|
||||
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_started_at" timestamp;
|
||||
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_completed_at" timestamp;
|
||||
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_error" text;
|
||||
CREATE INDEX IF NOT EXISTS "doc_processing_status_idx" ON "document" USING btree ("knowledge_base_id","processing_status");
|
||||
Reference in New Issue
Block a user