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 f06cb86 commit ef473f9Copy full SHA for ef473f9
create/wp_bbp_subscribed_topics.sql
@@ -1,7 +1,8 @@
1
+/* convert subscribed topics meta to own table */
2
INSERT INTO wp_bbp_subscribed_topics
3
SELECT
- CAST(pm.meta_value AS UNSIGNED) AS user_id,
4
- pm.post_id AS topic_id
+ CAST(pm.meta_value AS UNSIGNED) AS user_id,
5
+ pm.post_id AS topic_id
6
FROM wp_postmeta pm
7
INNER JOIN wp_posts p ON p.ID = pm.post_id AND p.post_type = 'topic'
8
WHERE pm.meta_key = '_bbp_subscription'
0 commit comments