Skip to content

Commit 9d1b73e

Browse files
authored
Update and rename create/wp_bbp_favorited_topics.sql to generate/inserts/wp_bbp_favorited_topics.sql
1 parent 08e285b commit 9d1b73e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

create/wp_bbp_favorited_topics.sql

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* convert favorited meta to own table */
2+
INSERT INTO wp_bbp_favorited_topics
3+
SELECT
4+
CAST(meta_value AS UNSIGNED) AS user_id,
5+
post_id AS topic_id
6+
FROM wp_postmeta
7+
WHERE meta_key = '_bbp_favorite'

0 commit comments

Comments
 (0)