Skip to content
Snippets Groups Projects
Commit 25e0f725 authored by PavelBegunkov's avatar PavelBegunkov
Browse files

fix

parent 4a9edd95
Branches
Tags
No related merge requests found
......@@ -2577,8 +2577,8 @@ BEGIN
END //
DROP FUNCTION IF EXISTS CleanDiscipline//
CREATE FUNCTION `CleanDiscipline` ( `AuthorID` INT,
DROP FUNCTION IF EXISTS ClearDiscipline//
CREATE FUNCTION `ClearDiscipline` ( `AuthorID` INT,
`DisciplineID` INT
) RETURNS int(11)
NO SQL
......@@ -2589,6 +2589,15 @@ BEGIN
RETURN -1;
END IF;
DELETE FROM `logs_rating`
WHERE logs_rating.SubModuleID IN
(
SELECT submodules.ID
FROM `submodules`
INNER JOIN `modules` ON submodules.ModuleID = modules.ID
WHERE modules.DisciplineID = DisciplineID
);
DELETE FROM `rating_table`
WHERE rating_table.SubModuleID IN
(
......
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