/*
  Warnings:

  - Added the required column `excercise_id` to the `student_examination` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE `student_examination` ADD COLUMN `excercise_id` INTEGER NOT NULL;

-- AddForeignKey
ALTER TABLE `student_examination` ADD CONSTRAINT `student_examination_excercise_id_fkey` FOREIGN KEY (`excercise_id`) REFERENCES `lesson`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
