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:
parent
e7c43dbb67
commit
eace91af20
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user