experimental form
This commit is contained in:
3
packages/db/migrations/0003_clammy_shadowcat.sql
Normal file
3
packages/db/migrations/0003_clammy_shadowcat.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE "grades" DROP COLUMN "id";--> statement-breakpoint
|
||||
ALTER TABLE "grades" ADD CONSTRAINT "grades_student_id_sem_pk" PRIMARY KEY("student_id","sem");--> statement-breakpoint
|
||||
ALTER TABLE "grades" ADD CONSTRAINT "sem_check1" CHECK ("grades"."sem" < 9);
|
||||
Reference in New Issue
Block a user