Hey guys,
as most of us I´ve migrated from vBulletin to XenForo. In vBulletin we had a custom field in the db and I need those values now inserted into another field in the xf_user_profile (affected users: roundabout 40.000). I know that it´s totally out of the scope of a normal support request, but I have so less experience in sql manipulation, that I´m afraid to break the database with a misformatted query, that it appears wise to ask for some help.
I want to copy the value of
- table: xf_user_field_value
- field_id: abc
into
- table: xf_user_profile
- field_id: xyz
but IF ONLY the conditional
- table: xf_user_profile, field_id: xyz IS EMPTY and NO value existing in there (to prevent overwriting of more actual data)
is met.
May be I´m too anxious and should give the query samples on stackoverflow a try - but I´ve crashed the DB once with that and since then I guess I´m a liitle bit to cautious and feeling like I`ld have to perform an open heart surgery
You would really do me a huge favor, if you could help me out with that query string for that operation.
Regards,
Sperber.
as most of us I´ve migrated from vBulletin to XenForo. In vBulletin we had a custom field in the db and I need those values now inserted into another field in the xf_user_profile (affected users: roundabout 40.000). I know that it´s totally out of the scope of a normal support request, but I have so less experience in sql manipulation, that I´m afraid to break the database with a misformatted query, that it appears wise to ask for some help.
I want to copy the value of
- table: xf_user_field_value
- field_id: abc
into
- table: xf_user_profile
- field_id: xyz
but IF ONLY the conditional
- table: xf_user_profile, field_id: xyz IS EMPTY and NO value existing in there (to prevent overwriting of more actual data)
is met.
May be I´m too anxious and should give the query samples on stackoverflow a try - but I´ve crashed the DB once with that and since then I guess I´m a liitle bit to cautious and feeling like I`ld have to perform an open heart surgery
You would really do me a huge favor, if you could help me out with that query string for that operation.
Regards,
Sperber.