Skip to content

Commit

Permalink
#42 membership module: correct SQL var assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Trofimov committed Oct 19, 2015
1 parent 7d5c626 commit 523b6b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/boonex/membership/install/sql/uninstall.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ DELETE FROM `sys_cron_jobs` WHERE `name`=@sModuleName;


-- alerts
SELECT @iHandlerId:=`id` FROM `sys_alerts_handlers` WHERE `name`=@sModuleName LIMIT 1;
SET @iHandlerId = (SELECT `id` FROM `sys_alerts_handlers` WHERE `name`=@sModuleName LIMIT 1);
DELETE FROM `sys_alerts_handlers` WHERE `name`=@sModuleName LIMIT 1;
DELETE FROM `sys_alerts` WHERE `handler_id`=@iHandlerId;
DELETE FROM `sys_alerts` WHERE `handler_id`=@iHandlerId;

0 comments on commit 523b6b7

Please sign in to comment.