TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 394
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 278
  • Total: 278

mySQL Syntax for reassociating articles to a uid

Started by Chelle, July 10, 2007, 07:43:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chelle

Hi all,

I'm trying to put together some mySQL statements that will re associate articles written to a user whose uid changed. 

I'm good for the posts, pms, it's just that I'm still getting familiar with the TP additions.  From the looks of it, I need to address articles and shouts in the shoutbox [but it looks like I can change to the new id via the DB, and this isn't as important]

From looking at the table, this should be all I need, right?

UPDATE tableprefix_tp_articles SET authorID = 'newmemberid' WHERE authorID = 'oldmemberid';


Chelle

Just to follow up, this worked when I tested it on a test site a few times over for anyone else that would need to re-associate things. :)

This website is proudly hosted on Crocweb Cloud Website Hosting.