Skip to content

Commit 2b52d88

Browse files
fix(migrations): add missing migration for document table (#1080)
* fix(migrations): add missing migration for document table * add newline at end of file
1 parent a37c6bc commit 2b52d88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_status" text DEFAULT 'pending' NOT NULL;
2+
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_started_at" timestamp;
3+
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_completed_at" timestamp;
4+
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_error" text;
5+
CREATE INDEX IF NOT EXISTS "doc_processing_status_idx" ON "document" USING btree ("knowledge_base_id","processing_status");

0 commit comments

Comments
 (0)