1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-06 14:35:56 +02:00

[ticket/11691] Add order by to the query

PHPBB3-11691
This commit is contained in:
Joas Schilling 2013-08-19 10:30:23 +02:00
parent e7c43dbb67
commit eace91af20

View File

@ -151,7 +151,8 @@ class softdelete_p1 extends \phpbb\db\migration\migration
$sql = 'SELECT forum_id, topic_visibility, COUNT(topic_id) AS sum_topics, SUM(topic_posts_approved) AS sum_posts_approved, SUM(topic_posts_unapproved) AS sum_posts_unapproved
FROM ' . $this->table_prefix . 'topics
GROUP BY forum_id, topic_visibility';
GROUP BY forum_id, topic_visibility
ORDER BY forum_id, topic_visibility';
$result = $this->db->sql_query_limit($sql, $limit, $start);
$update_forums = array();