mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11691] Add order by to the query
PHPBB3-11691
This commit is contained in:
parent
e7c43dbb67
commit
eace91af20
1 changed files with 2 additions and 1 deletions
|
@ -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
|
$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
|
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);
|
$result = $this->db->sql_query_limit($sql, $limit, $start);
|
||||||
|
|
||||||
$update_forums = array();
|
$update_forums = array();
|
||||||
|
|
Loading…
Add table
Reference in a new issue