Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
public/pdf.worker.min.mjs
7 changes: 7 additions & 0 deletions drizzle/0036_motionless_rick_jones.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Switch full-text search to the 'german' config (stemming + stop words).
-- A generated column cannot be altered in place; drop + re-add rewrites the
-- table and recomputes the vectors. Dropping the column also drops the GIN
-- index, so it is recreated afterwards.
ALTER TABLE "material_chunk" drop column "content_tsv";--> statement-breakpoint
ALTER TABLE "material_chunk" ADD COLUMN "content_tsv" "tsvector" GENERATED ALWAYS AS (to_tsvector('german', "material_chunk"."content")) STORED;--> statement-breakpoint
CREATE INDEX "material_chunk_tsv_idx" ON "material_chunk" USING gin ("content_tsv");
2 changes: 2 additions & 0 deletions drizzle/0037_typical_overlord.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE "ai_conversation" ADD COLUMN "material_id" text;--> statement-breakpoint
ALTER TABLE "ai_conversation" ADD CONSTRAINT "ai_conversation_material_id_material_id_fk" FOREIGN KEY ("material_id") REFERENCES "public"."material"("id") ON DELETE set null ON UPDATE no action;
Loading
Loading