diff --git a/CHANGELOG.md b/CHANGELOG.md index cf88ec11e..9e82781f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c ### Deprecated ### Removed ### Fixed +- Missing DB table name specifier in `/cleanup` command. (#947) ### Security ## [0.56.0] - 2019-04-15 diff --git a/src/Commands/AdminCommands/CleanupCommand.php b/src/Commands/AdminCommands/CleanupCommand.php index a136a5156..c3b084b43 100644 --- a/src/Commands/AdminCommands/CleanupCommand.php +++ b/src/Commands/AdminCommands/CleanupCommand.php @@ -306,7 +306,7 @@ private function getQueries($settings) SELECT id FROM ( SELECT id - FROM `message` + FROM `%1$s` WHERE `date` < \'%2$s\' AND `id` NOT IN ( SELECT `message_id`