default userpic

changing blog_id value system wide?

Vote 0 Votes

hey,

i have this complex migration i'm in the middle of. i'm moving an mt3 blog to an already active mt4 blog.

on this mt4 blog, I've backed up the mttemplate table for blogid 10, and I'm restoring a blog into mt4 that I want to have the same blog_id of 10, so that I can restore the template table.

i've deleted the old blog_id 10 blog, but restore kicks me to 13 (which is the next free number).

How do I:

A: Have it restore right into blog_id 10

or

B: Change a blog from one ID to another.

I'm guessing this would be a mysql query - so if someone can help me with that I'd be happy to execute.

Thanks!

Neil

1 Reply

| Add a Reply
  • A. See here

    B. Scary. Very scary. You have update mt_blog.blog_id and every single instance of OBJECT_blog_id (where object is like entry, comment, objecttag, etc) in each of the tables and then simultaneously update them all to your desired ID. Not for the faint of heart...

Add a Reply

Forum Groups

6 7

Last Topic: API password missing. by Absoblogginlutely! on Feb 26, 2008

62 142

Last Topic: Issues obtaining the Source by apidevlab on Jul 17, 2008

69 125

Last Topic: L10N by Voulf on Jul 16, 2008

24 55

Last Topic: installing allong side a vbulletin by Forgoten Dynasty on Jul 20, 2008

3 5

Last Topic: Share your success story, please. by Gianluca on Jun 20, 2008

code.sixapart.com

20 46

Last Topic: Installing in sub-folder by Lala on Jul 5, 2008