Skip to content

Commit ef473f9

Browse files
authored
Update wp_bbp_subscribed_topics.sql
1 parent f06cb86 commit ef473f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
/* convert subscribed topics meta to own table */
12
INSERT INTO wp_bbp_subscribed_topics
23
SELECT
3-
CAST(pm.meta_value AS UNSIGNED) AS user_id,
4-
pm.post_id AS topic_id
4+
CAST(pm.meta_value AS UNSIGNED) AS user_id,
5+
pm.post_id AS topic_id
56
FROM wp_postmeta pm
67
INNER JOIN wp_posts p ON p.ID = pm.post_id AND p.post_type = 'topic'
78
WHERE pm.meta_key = '_bbp_subscription'

0 commit comments

Comments
 (0)