mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-07 22:24:06 -05:00
fix(migrations): add missing migration for processing columns in documents table (#1749)
This commit is contained in:
@@ -1,5 +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");
|
||||
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_status" text DEFAULT 'pending' NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_started_at" timestamp;--> statement-breakpoint
|
||||
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_completed_at" timestamp;--> statement-breakpoint
|
||||
ALTER TABLE "document" ADD COLUMN IF NOT EXISTS "processing_error" text;--> statement-breakpoint
|
||||
CREATE INDEX IF NOT EXISTS "doc_processing_status_idx" ON "document" USING btree ("knowledge_base_id","processing_status");
|
||||
7096
packages/db/migrations/meta/0101_snapshot.json
Normal file
7096
packages/db/migrations/meta/0101_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -701,6 +701,13 @@
|
||||
"when": 1760661127478,
|
||||
"tag": "0100_public_black_cat",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 101,
|
||||
"version": "7",
|
||||
"when": 1761631932261,
|
||||
"tag": "0101_missing_doc_processing",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user