Last active
December 12, 2015 01:21
-
-
Save szbl/60d81e14817b16212b3b 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_users u, wp_postmeta pm | |
WHERE CONCAT( '_stcr@_', u.user_email ) = pm.meta_key | |
ORDER BY user_email |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment