Re: Migration de newbb 3.0.8 í newbbex 1.6 | Titre du sujet : Re: Migration de newbb 3.0.8 í newbbex 1.6 par eparcyl92 sur 27/08/2008 17:54:09
Merci Blueteen,
Pour la table _bbex_posts
PHASE 1 renommer deux colonnes provisoirement Citation : ALTER TABLE `[prefix]_bbex_posts` CHANGE `nohtml` `dohtml` TINYINT( 1 ) NOT NULL DEFAULT '0', CHANGE `nosmiley` `dosmiley` TINYINT( 1 ) NOT NULL DEFAULT '0';
PHASE 2: Et puis faire :
Citation : INSERT INTO [prefix]_bbex_posts ( post_id, pid, topic_id, forum_id, post_time, uid, poster_ip, subject, dohtml, dosmiley, icon, attachsig ) SELECT post_id, pid, topic_id, forum_id, post_time, uid, poster_ip, subject, dohtml, dosmiley, icon, attachsig FROM [prefix]_bb_posts;
PHASE 3: Et enfin, renommer les deux colonnes comme elles étaient avant:
Citation : ALTER TABLE `[prefix]_bbex_posts` CHANGE `dohtml` `nohtml` TINYINT( 1 ) NOT NULL DEFAULT '0', CHANGE `dosmiley` `nosmiley` TINYINT( 1 ) NOT NULL DEFAULT '0';
Reste encore un peu....
|
|