ALTER TABLE Enrollments
ADD FOREIGN KEY(courseID)
   REFERENCES Courses(courseID)
   ON DELETE NO ACTION
   ON UPDATE CASCADE;