I'm in need of a query that can transfer information between imported vB custom fields and newly created XenForo custom fields. The information is text or numeric values.
This is great. Since I used swedish words for the field names in vBulletin I'm going to create new ones with english field IDs and transfer all information correspondingly.
What would the query look like if I want to transfer information from a custom field to, let's say for instance, the "about" field in XenForo?
UPDATE xf_user_profile AS up
SET up.about = (
SELECT ufv.field_value
FROM xf_user_field_value AS ufv
WHERE ufv.user_id = up.user_id
AND ufv.field_id = 'old_field_id'
);