Fork me on GitHub

Rapport de message :*
 

Re: Conversion de base de données

Titre du sujet : Re: Conversion de base de données
par krysto sur 12/10/2010 23:12:19

les tables articles boost (phpboost) à convertir vers xoops : News
--
-- 
Structure de la table `phpboost_articles`
--

CREATE TABLE IF NOT EXISTS `phpboost_articles` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
idcatint(11NOT NULL DEFAULT '0',
  `
titlevarchar(100NOT NULL DEFAULT '',
  `
contentsmediumtext NOT NULL,
  `
iconvarchar(255NOT NULL DEFAULT '',
  `
timestampint(11NOT NULL DEFAULT '0',
  `
visibletinyint(1NOT NULL DEFAULT '0',
  `
startint(11NOT NULL DEFAULT '0',
  `
endint(11NOT NULL DEFAULT '0',
  `
user_idint(11NOT NULL DEFAULT '0',
  `
viewsmediumint(9NOT NULL DEFAULT '0',
  `
users_notetext,
  `
nbrnotemediumint(9NOT NULL DEFAULT '0',
  `
notefloat NOT NULL DEFAULT '0',
  `
nbr_comint(11unsigned NOT NULL DEFAULT '0',
  `
lock_comtinyint(1NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`),
  
KEY `idcat` (`idcat`),
  
FULLTEXT KEY `title` (`title`),
  
FULLTEXT KEY `contents` (`contents`)
TYPE=MyISAM  AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_articles`
--

INSERT INTO `phpboost_articles` (`id`, `idcat`, `title`, `contents`, `icon`, `timestamp`, `visible`, `start`, `end`, `user_id`, `views`, `users_note`, `nbrnote`, `note`, `nbr_com`, `lock_com`) VALUES
(11'Débuter avec le module Articles''Ce bref article va vous donner quelques conseils simples pour prendre en main ce module.<br />rn<br />rn<ul class="bb_ul">rn    <li class="bb_li">Pour configurer votre module, <a href="/articles/admin_articles_config.php">cliquez ici</a>rn    </li><li class="bb_li">Pour ajouter des catégories : <a href="/admin_articles_cat_add.php">cliquez ici</a> (les catégories et sous catégories sont à l''infini)rn    </li><li class="bb_li">Pour ajouter un article, vous avez 2 solutions  (les 2 arrivent au même lien)<br />rn        <ul class="bb_ul">rn            <li class="bb_li">Dans la catégorie souhaitée, cliquez sur le bouton ''Ajout''rn            </li><li class="bb_li"><a href="/articles/admin_articles_add.php">Cliquez ici</a> pour l''ajouter via le panneau d''administration du module.<br />rn        </li></ul>rn    </li><li class="bb_li">Pour mettre en page vos articles, vous pouvez utiliser le langage bbcode ou l''éditeur WYSIWYG (cf cet <a href="http://www.phpboost.com/articles/articles-6-61+mise-en-page-du-contenu.php">article</a>)<br />rn</li></ul><br />rn<br />rnPour en savoir plus, n''hésitez pas à consulter la documentation du module sur le site de <a href="http://www.phpboost.com">PHPBoost</a>.<br />rn<br />rn<br />rnBonne utilisation de ce module.'''124249698110013'0'0000);

-- --------------------------------------------------------

--
-- 
Structure de la table `phpboost_articles_cats`
--

CREATE TABLE IF NOT EXISTS `phpboost_articles_cats` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
id_leftint(11NOT NULL DEFAULT '0',
  `
id_rightint(11NOT NULL DEFAULT '0',
  `
levelint(11NOT NULL DEFAULT '0',
  `
namevarchar(100NOT NULL DEFAULT '',
  `
contentstext,
  `
nbr_articles_visiblemediumint(9unsigned NOT NULL DEFAULT '0',
  `
nbr_articles_unvisiblemediumint(9unsigned NOT NULL DEFAULT '0',
  `
iconvarchar(255NOT NULL DEFAULT '',
  `
aprobtinyint(1NOT NULL DEFAULT '0',
  `
authtext,
  
PRIMARY KEY (`id`),
  
KEY `id_left` (`id_left`)
TYPE=MyISAM  AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_articles_cats`
--

INSERT INTO `phpboost_articles_cats` (`id`, `id_left`, `id_right`, `level`, `name`, `contents`, `nbr_articles_visible`, `nbr_articles_unvisible`, `icon`, `aprob`, `auth`) VALUES
(1120'Catégorie de test''Articles de démonstration'10'articles.png'1'a:3:{s:3:"r-1";i:1;s:2:"r0";i:1;s:2:"r1";i:1;}');


les tables boost forum à convertir vers xoops NewBB
--
-- 
Structure de la table `phpboost_forum_alerts`
--

CREATE TABLE IF NOT EXISTS `phpboost_forum_alerts` (
  `
idmediumint(11NOT NULL AUTO_INCREMENT,
  `
idcatint(11NOT NULL DEFAULT '0',
  `
idtopicint(11NOT NULL DEFAULT '0',
  `
titlevarchar(255NOT NULL DEFAULT '',
  `
contentstext,
  `
user_idint(11NOT NULL DEFAULT '0',
  `
statustinyint(1NOT NULL DEFAULT '0',
  `
idmodoint(11NOT NULL DEFAULT '0',
  `
timestampint(11NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`),
  
KEY `idtopic` (`idtopic`,`user_id`,`idmodo`)
TYPE=MyISAM AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_forum_alerts`
--


-- --------------------------------------------------------

--
-- 
Structure de la table `phpboost_forum_cats`
--

CREATE TABLE IF NOT EXISTS `phpboost_forum_cats` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
id_leftint(11NOT NULL DEFAULT '0',
  `
id_rightint(11NOT NULL DEFAULT '0',
  `
levelint(11NOT NULL DEFAULT '0',
  `
namevarchar(100NOT NULL DEFAULT '',
  `
subnamevarchar(150NOT NULL DEFAULT '',
  `
nbr_topicmediumint(9NOT NULL DEFAULT '0',
  `
nbr_msgmediumint(9NOT NULL DEFAULT '0',
  `
last_topic_idint(11NOT NULL DEFAULT '0',
  `
statustinyint(1NOT NULL DEFAULT '1',
  `
aprobtinyint(1NOT NULL DEFAULT '0',
  `
authtext,
  `
urlvarchar(255NOT NULL,
  
PRIMARY KEY (`id`),
  
KEY `last_topic_id` (`last_topic_id`),
  
KEY `id_left` (`id_left`)
TYPE=MyISAM  AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_forum_cats`
--

INSERT INTO `phpboost_forum_cats` (`id`, `id_left`, `id_right`, `level`, `name`, `subname`, `nbr_topic`, `nbr_msg`, `last_topic_id`, `status`, `aprob`, `auth`, `url`) VALUES
(1140'Cat&eacute;gorie de test''Cat&eacute;gorie de test'11111'a:4:{s:3:"r-1";i:1;s:2:"r0";i:1;s:2:"r1";i:1;s:2:"r2";i:7;}'''),
(
2231'Forum de test''Forum de test'11111'a:4:{s:3:"r-1";i:1;s:2:"r0";i:3;s:2:"r1";i:7;s:2:"r2";i:7;}''');

-- --------------------------------------------------------

--
-- 
Structure de la table `phpboost_forum_history`
--

CREATE TABLE IF NOT EXISTS `phpboost_forum_history` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
actionvarchar(50NOT NULL DEFAULT '',
  `
user_idint(11NOT NULL DEFAULT '0',
  `
user_id_actionint(11NOT NULL DEFAULT '0',
  `
urlvarchar(255NOT NULL,
  `
timestampint(11NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`),
  
KEY `user_id` (`user_id`)
TYPE=MyISAM AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_forum_history`
--


-- --------------------------------------------------------

--
-- 
Structure de la table `phpboost_forum_msg`
--

CREATE TABLE IF NOT EXISTS `phpboost_forum_msg` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
idtopicint(11NOT NULL DEFAULT '0',
  `
user_idmediumint(9NOT NULL DEFAULT '0',
  `
contentstext,
  `
timestampint(11NOT NULL DEFAULT '0',
  `
timestamp_editint(11NOT NULL DEFAULT '0',
  `
user_id_editint(11NOT NULL DEFAULT '0',
  `
user_ipvarchar(50NOT NULL DEFAULT '',
  
PRIMARY KEY (`id`),
  
KEY `idtopic` (`idtopic`,`user_id`,`timestamp`),
  
FULLTEXT KEY `contenu` (`contents`)
TYPE=MyISAM  AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_forum_msg`
--

INSERT INTO `phpboost_forum_msg` (`id`, `idtopic`, `user_id`, `contents`, `timestamp`, `timestamp_edit`, `user_id_edit`, `user_ip`) VALUES
(111'Message de test sur le forum PHPBoost'128691736200'127.0.0.1');

-- --------------------------------------------------------

--
-- 
Structure de la table `phpboost_forum_poll`
--

CREATE TABLE IF NOT EXISTS `phpboost_forum_poll` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
idtopicint(11NOT NULL DEFAULT '0',
  `
questionvarchar(255NOT NULL DEFAULT '',
  `
answerstext,
  `
voter_idtext,
  `
votestext,
  `
typetinyint(1NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`),
  
UNIQUE KEY `idtopic` (`idtopic`)
TYPE=MyISAM AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_forum_poll`
--


-- --------------------------------------------------------

--
-- 
Structure de la table `phpboost_forum_topics`
--

CREATE TABLE IF NOT EXISTS `phpboost_forum_topics` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
idcatint(11NOT NULL DEFAULT '0',
  `
titlevarchar(100NOT NULL DEFAULT '',
  `
subtitlevarchar(75NOT NULL DEFAULT '',
  `
user_idint(11NOT NULL DEFAULT '0',
  `
nbr_msgmediumint(9NOT NULL DEFAULT '0',
  `
nbr_viewsmediumint(9NOT NULL DEFAULT '0',
  `
last_user_idint(11NOT NULL DEFAULT '0',
  `
last_msg_idint(11NOT NULL DEFAULT '0',
  `
last_timestampint(11NOT NULL DEFAULT '0',
  `
first_msg_idint(11NOT NULL DEFAULT '0',
  `
typetinyint(1NOT NULL DEFAULT '0',
  `
statustinyint(1NOT NULL DEFAULT '0',
  `
aprobtinyint(1NOT NULL DEFAULT '0',
  `
display_msgtinyint(1unsigned NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`),
  
KEY `idcat` (`idcat`,`last_user_id`,`last_timestamp`,`type`),
  
FULLTEXT KEY `title` (`title`)
TYPE=MyISAM  AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_forum_topics`
--

INSERT INTO `phpboost_forum_topics` (`id`, `idcat`, `title`, `subtitle`, `user_id`, `nbr_msg`, `nbr_views`, `last_user_id`, `last_msg_id`, `last_timestamp`, `first_msg_id`, `type`, `status`, `aprob`, `display_msg`) VALUES
(12'Test''Sujet de test'11011128691736210100);

-- --------------------------------------------------------

--
-- 
Structure de la table `phpboost_forum_track`
--

CREATE TABLE IF NOT EXISTS `phpboost_forum_track` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
idtopicint(11NOT NULL DEFAULT '0',
  `
user_idint(11NOT NULL DEFAULT '0',
  `
tracktinyint(1NOT NULL DEFAULT '0',
  `
pmtinyint(1NOT NULL DEFAULT '0',
  `
mailtinyint(1NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`),
  
UNIQUE KEY `idtopic` (`idtopic`,`user_id`)
TYPE=MyISAM AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_forum_track`
--


-- --------------------------------------------------------

--
-- 
Structure de la table `phpboost_forum_view`
--

CREATE TABLE IF NOT EXISTS `phpboost_forum_view` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
idtopicint(11NOT NULL DEFAULT '0',
  `
last_view_idint(11NOT NULL DEFAULT '0',
  `
user_idint(11NOT NULL DEFAULT '0',
  `
timestampint(11NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`),
  
KEY `idv` (`idtopic`,`user_id`)
TYPE=MyISAM AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_forum_view`
--


et les tables boost galery à convertir vers xoops TadGallerie
--
-- 
Structure de la table `phpboost_gallery`
--

CREATE TABLE IF NOT EXISTS `phpboost_gallery` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
idcatint(11NOT NULL DEFAULT '0',
  `
namevarchar(255NOT NULL DEFAULT '',
  `
pathvarchar(255NOT NULL DEFAULT '',
  `
widthmediumint(9NOT NULL DEFAULT '0',
  `
heightmediumint(9NOT NULL DEFAULT '0',
  `
weightmediumint(9NOT NULL DEFAULT '0',
  `
user_idint(11NOT NULL DEFAULT '0',
  `
aprobtinyint(1NOT NULL DEFAULT '0',
  `
viewsint(11NOT NULL DEFAULT '0',
  `
timestampint(11NOT NULL DEFAULT '0',
  `
users_notetext,
  `
nbrnotemediumint(9NOT NULL DEFAULT '0',
  `
notefloat NOT NULL DEFAULT '0',
  `
nbr_comint(11unsigned NOT NULL DEFAULT '0',
  `
lock_comtinyint(1NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`),
  
KEY `idcat` (`idcat`)
TYPE=MyISAM  AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_gallery`
--

INSERT INTO `phpboost_gallery` (`id`, `idcat`, `name`, `path`, `width`, `height`, `weight`, `user_id`, `aprob`, `views`, `timestamp`, `users_note`, `nbrnote`, `note`, `nbr_com`, `lock_com`) VALUES
(11'PHPBoost 3!''phpboost3.jpg'320264156141101286917363''0000);

-- --------------------------------------------------------

--
-- 
Structure de la table `phpboost_gallery_cats`
--

CREATE TABLE IF NOT EXISTS `phpboost_gallery_cats` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
id_leftint(11NOT NULL DEFAULT '0',
  `
id_rightint(11NOT NULL DEFAULT '0',
  `
levelint(11NOT NULL DEFAULT '0',
  `
namevarchar(150NOT NULL DEFAULT '',
  `
contentstext,
  `
nbr_pics_aprobmediumint(9unsigned NOT NULL DEFAULT '0',
  `
nbr_pics_unaprobmediumint(9unsigned NOT NULL DEFAULT '0',
  `
statustinyint(1NOT NULL DEFAULT '0',
  `
aprobtinyint(1NOT NULL DEFAULT '1',
  `
authtext,
  
PRIMARY KEY (`id`),
  
KEY `id_left` (`id_left`)
TYPE=MyISAM  AUTO_INCREMENT=;

--
-- 
Contenu de la table `phpboost_gallery_cats`
--

INSERT INTO `phpboost_gallery_cats` (`id`, `id_left`, `id_right`, `level`, `name`, `contents`, `nbr_pics_aprob`, `nbr_pics_unaprob`, `status`, `aprob`, `auth`) VALUES
(1120'Test''Galerie de test'1011'a:3:{s:3:"r-1";i:1;s:2:"r0";i:1;s:2:"r1";i:3;}');


Après pour les autres tables comme download je me débrouillerais ;) merci par avance pour votre aide pour faire comme pour les membres dans se topic, sans quoi tellement long à faire, perdre les données pas envisageable ça empêcherait de migrer vers xoops2.
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

70 Personne(s) en ligne (58 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 70 | Plus ...