updating schema

This commit is contained in:
lila 2026-04-07 01:03:22 +02:00
parent 0cb9fe1485
commit e79fa6922b
8 changed files with 674 additions and 3 deletions

View file

@ -0,0 +1,4 @@
DROP INDEX "idx_translations_lang";--> statement-breakpoint
ALTER TABLE "translations" ADD COLUMN "difficulty" varchar(20);--> statement-breakpoint
CREATE INDEX "idx_translations_lang" ON "translations" USING btree ("language_code","difficulty","cefr_level","term_id");--> statement-breakpoint
ALTER TABLE "translations" ADD CONSTRAINT "difficulty_check" CHECK ("translations"."difficulty" IN ('easy', 'intermediate', 'hard'));