The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
query to move 20,000 members to temp usergroup based upon userid
Is the following manual query safe to run to move a large amount of users to a different primary usergroup based upon their userid?
[SQL] UPDATE user SET usergroupid = 34 WHERE userid < 24509 [/SQL] Just want to make sure nothing is missed (settings / data in other tables) when doing such thing through CP Thanks! |
#2
|
|||
|
|||
Back up your forums first.
I did something like this the other week and it worked just fine. |
#3
|
||||
|
||||
already backed up[, just want to make sure the usergroupid doesn't need to be handled elsewhere. for instance, such as displaygroupid, user title, etc...
|
#4
|
||||
|
||||
If you're using the default user title ladder, the usertitle field should be fine.
|
#5
|
|||
|
|||
I hope that you know what you are doing, as the example you provided would move ALL users with a userid smaller then 24509 (including an admin with id = 1 for example???) to this new usergroup. |
#6
|
||||
|
||||
You should update the displaygroupid as well (if it's not '0' and is equal to their existing primary group).
|
#7
|
||||
|
||||
Quote:
[SQL] UPDATE user SET usergroupid = 34 WHERE userid < 24509 AND usergroupid = 2 [/SQL] Quote:
Thanks to both of you |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|