SQL Query

Ozzy47

Well-known member
Anyone have a query I can run in the DB that would change all forum posts and threads of user X to userY?
 
That’s not what the client wants. They want user X to stay the same except that their posts and threads get assigned to user Y.
 
What about:

Code:
UPDATE xf_post SET user_id = xxxxxx WHERE username ='xxxxxx';

UPDATE xf_thread SET user_id = xxxxxx WHERE username ='xxxxxx';

I use to restore deleted users, a rebuilt search/post count is needed.
 
things like post counts, titles, promotions from having x posts, etc will all be out of wack.. there's a lot more to update i think
 
Not quite the same but the query here:


Might be adapted
 
Top Bottom