The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Copying information in the database, vb3
I have a custom field in the user table that still contains a lot of info from vB2.
I want to use this information and have created a new user profile field(stored in table userfield) where it is to be used. How can I copy all that info from the old field to the new one? Thanks, G |
#2
|
||||
|
||||
If you are using a mySQL-Version that is capable of multi table updates:
UPDATE userfield, user SET userfield.fieldx=user.oldfield WHERE userfield.userid=user.userid; Where fieldx is the new profilefield (eg. field10 for example) and oldfield is the name of the old field in table user. |
#3
|
||||
|
||||
Thanks for the reply, looks easy in theory
Does it matter that the format of the fields are slightly different, the old field is varchar(50) and the new one varchar(250)? /G |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|