Skip to content
Snippets Groups Projects
Commit 38bf085e authored by PavelBegunkov's avatar PavelBegunkov
Browse files

change discipline: students annihilation

parent 8b799e41
Branches
Tags
No related merge requests found
......@@ -1718,6 +1718,20 @@ BEGIN
RETURN -1;
END IF;
SELECT disciplines.Grade
INTO checker
FROM `disciplines`
WHERE disciplines.ID = DisciplineID
LIMIT 1;
IF checker != Grade THEN
DELETE FROM `disciplines_groups`
WHERE disciplines_groups.DisciplineID = DisciplineID;
DELETE FROM `disciplines_students`
WHERE disciplines_students.DisciplineID = DisciplineID;
END IF;
UPDATE `disciplines`
SET disciplines.ExamType = ExamType,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment