feat: add unique constraint to lesson_completion table
This commit is contained in:
@@ -29,3 +29,6 @@ where
|
|||||||
END;
|
END;
|
||||||
$function$
|
$function$
|
||||||
;
|
;
|
||||||
|
|
||||||
|
ALTER TABLE public.lesson_completion
|
||||||
|
ADD CONSTRAINT unique_lesson_profile UNIQUE (lesson_id, profile_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user