We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 689f70b commit c8acd35Copy full SHA for c8acd35
generate/updates/wp_bbp_forums_part_2.sql
@@ -0,0 +1,9 @@
1
+
2
+/* Update last_active_id */
3
+UPDATE wp_bbp_forums f
4
+SET f.last_active_id = GREATEST(last_topic_id, last_reply_id);
5
6
+/* Update last_active_time */
7
8
+INNER JOIN wp_posts p ON p.ID = f.last_active_id
9
+SET f.last_active_time = p.post_date;
0 commit comments