Files
sim/packages/db/migrations/0045_sour_chameleon.sql
Vikhyath Mondreti 9de7a00373 improvement(code-structure): move db into separate package (#1364)
* improvement(code-structure): move db into separate package

* make db separate package

* remake bun lock

* update imports to not maintain two separate ones

* fix CI for tests by adding dummy url

* vercel build fix attempt

* update bun lock

* regenerate bun lock

* fix mocks

* remove db commands from apps/sim package json
2025-09-17 15:41:13 -07:00

10 lines
656 B
SQL

DROP INDEX "doc_file_hash_idx";--> statement-breakpoint
DROP INDEX "emb_chunk_hash_idx";--> statement-breakpoint
DROP INDEX "emb_kb_access_idx";--> statement-breakpoint
DROP INDEX "emb_kb_rank_idx";--> statement-breakpoint
ALTER TABLE "document" DROP COLUMN "file_hash";--> statement-breakpoint
ALTER TABLE "embedding" DROP COLUMN "overlap_tokens";--> statement-breakpoint
ALTER TABLE "embedding" DROP COLUMN "search_rank";--> statement-breakpoint
ALTER TABLE "embedding" DROP COLUMN "access_count";--> statement-breakpoint
ALTER TABLE "embedding" DROP COLUMN "last_accessed_at";--> statement-breakpoint
ALTER TABLE "embedding" DROP COLUMN "quality_score";