Correct delete outdated likes
authorJoshua Rüsweg <josh@bastelstu.be>
Thu, 2 Aug 2018 13:05:25 +0000 (15:05 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Thu, 2 Aug 2018 13:05:25 +0000 (15:05 +0200)
See #2508

wcfsetup/install/files/acp/update-com.woltlab.wcf_3.2_reactionUpdate.php

index 5e5a95b6652c8ca341c13b824b79e0bfa8948a9c..a8117dbd7e0d037b48f9d4f814cf106b82c4d909 100644 (file)
@@ -42,7 +42,7 @@ try {
        ]);
        
        // delete outdated likes, which aren't likes nor dislikes (normally none should exist)
-       $sql = "DELETE wcf1_like WHERE reactionTypeID = 0";
+       $sql = "DELETE FROM wcf1_like WHERE reactionTypeID = 0";
        $statement = WCF::getDB()->prepareStatement(str_replace('wcf1_', 'wcf'.WCF_N.'_', $sql));
        
        // add foreign key