Created
December 5, 2015 03:30
-
-
Save szbl/db0e0ef384fd91e0a949 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO wp_usermeta | |
( user_id, meta_key, meta_value ) | |
SELECT | |
u.ID as user_id, | |
'szbl_favorites' as meta_key, | |
pm.post_id as meta_value | |
FROM | |
wp_postmeta pm, wp_users u | |
WHERE | |
pm.meta_key = 'start_email' | |
AND u.user_email = pm.meta_value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment