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

fix

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