Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [ArmyAirForces] Merge forums

Quote Reply
Re: [ArmyAirForces] Merge forums In reply to
Alright, the code to do two forums at once would be like this:

UPDATE gforum_Post set forum_id_fk = 123 WHERE forum_id_fk IN (456, 789)

456 and 789 are the two old forum ID's.

Using Gossamer Forum's interface, you would do:

$DB->table('Post')->update({ forum_id_fk => 123 } => { forum_id_fk => [456, 789] });

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Merge forums ArmyAirForces 1363 Jun 29, 2002, 6:07 PM
Thread Re: [ArmyAirForces] Merge forums
Jagerman 1302 Jul 2, 2002, 5:11 PM
Thread Re: [Jagerman] Merge forums
ArmyAirForces 1297 Jul 2, 2002, 5:17 PM
Post Re: [ArmyAirForces] Merge forums
Jagerman 1298 Jul 2, 2002, 5:19 PM