![]() |
Copy User from one Secondary to another
Okay, so I've been digging around and it looks like this will require a modification to do.
Basically what I'm hoping to do is have a way to copy all the users in X secondary usergroup to also be a member of X secondary usergroup. |
[sql]UPDATE user
SET membergroupids = CONCAT(membergroupids, ',X') WHERE FIND_IN_SET(Y, membergroupids) AND NOT FIND_IN_SET(X, membergroupids)[/sql] Replace X (twice) with the new secondary membergroupid. Replace Y with the current usergroupid. Not tested, make a backup before trying. |
Backed up and ran.
Worked like a charm! Thanks Marco :) :) |
All times are GMT. The time now is 11:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|