I believe this line of code will help me create a unique id based on three columns, while ignoring any time the combination of these three columns is duplicated, yet ignore seems depreciated with mysql and I can not find another way to do this?
ALTER IGNORE TABLE `x` ADD UNIQUE INDEX `id`('student', 'class', 'session');