Documentation is available at field_definition_131.php
- <?php
- // ---------------------------------------------
- // simeray@tektonika.com
- // last modification: 10/12/07
- // ---------------------------------------------
- // --------------------------------------------------
- // AGORA 131 TO SPIP 192
- // --------------------------------------------------
- // --------------------------------------------------
- // spip_rubriques
- // --------------------------------------------------
- $spip_rubriques = array(
- 'id_rubrique' => 'id_rubrique',
- 'id_parent' => 'id_parent',
- 'titre' => 'titre',
- 'descriptif' => 'descriptif',
- 'texte' => 'texte',
- 'id_secteur' => 'id_secteur',
- 'maj' => 'maj',
- 'export' => 'export',
- 'id_import' => 'id_import',
- 'statut' => 'statut',
- 'date_heure' => 'date',
- 'lang' => 'lang',
- 'langue_choisie' => 'langue_choisie',
- 'extra' => 'extra'
- );
- // --------------------------------------------------
- // spip_articles
- // checked dec 12
- // --------------------------------------------------
- $spip_articles = array(
- 'id_article' => 'id_article',
- 'surtitre' => 'surtitre',
- 'titre' => 'titre',
- 'soustitre' => 'soustitre',
- 'id_rubrique' => 'id_rubrique',
- 'descriptif' => 'descriptif',
- 'chapo' => 'chapo',
- 'texte' => 'texte',
- 'ps' => 'ps',
- 'date_heure' => 'date',
- 'statut' => 'statut',
- 'id_secteur' => 'id_secteur',
- 'maj' => 'maj',
- 'export' => 'export',
- 'date_redac' => 'date_redac',
- 'visites' => 'visites',
- 'referers' => 'referers',
- 'popularite' => 'popularite',
- 'accepter_forum' => 'accepter_forum',
- 'date_modif' => 'date_modif',
- 'lang' => 'lang',
- 'langue_choisie' => 'langue_choisie',
- 'id_trad' => 'id_trad',
- 'extra' => 'extra',
- 'id_version' => 'id_version',
- 'nom_site' => 'nom_site',
- 'url_site' => 'url_site'
- );
- // --------------------------------------------------
- // spip_auteurs
- // checked dec 12
- // --------------------------------------------------
- $spip_auteurs = array(
- 'id_auteur' => 'id_auteur',
- 'nom' => 'nom',
- 'bio' => 'bio',
- 'email' => 'email',
- 'nom_site' => 'nom_site',
- 'url_site' => 'url_site',
- 'login' => 'login',
- 'pass' => 'pass',
- 'low_sec' => 'low_sec',
- 'statut' => 'statut',
- 'maj' => 'maj',
- 'pgp' => 'pgp',
- 'htpass' => 'htpass',
- 'en_ligne' => 'en_ligne',
- 'imessage' => 'imessage',
- 'messagerie' => 'messagerie',
- 'alea_actuel' => 'alea_actuel',
- 'alea_futur' => 'alea_futur',
- 'prefs' => 'prefs',
- 'cookie_oubli' => 'cookie_oubli',
- 'source' => 'source',
- 'lang' => 'lang',
- 'extra' => 'extra'
- );
- // -------------------------------
- // spip_auteurs_articles
- // checked dec 12
- // -------------------------------
- $spip_auteurs_articles = array(
- 'id_auteur' => 'id_auteur',
- 'id_article' => 'id_article'
- );
- // -------------------------------
- // spip_auteurs_messages
- // checked dec 12
- // -------------------------------
- $spip_auteurs_messages = array(
- 'id_auteur' => 'id_auteur',
- 'id_message ' => 'id_message ',
- 'vu' => 'vu'
- );
- // -------------------------------
- // spip_auteurs_rubriques
- // checked dec 12
- // -------------------------------
- $spip_auteurs_rubriques = array(
- 'id_auteur' => 'id_auteur',
- 'id_rubrique ' => 'id_rubrique '
- );
- // -------------------------------
- // spip_breves
- // checked dec 12
- // -------------------------------
- $spip_breves = array(
- 'id_breve' => 'id_breve',
- 'date_heure' => 'date_heure',
- 'titre' => 'titre',
- 'texte' => 'texte',
- 'lien_titre' => 'lien_titre',
- 'lien_url' => 'lien_url',
- 'statut' => 'statut',
- 'id_rubrique' => 'id_rubrique',
- 'lang' => 'lang',
- 'langue_choisie' => 'langue_choisie',
- 'maj' => 'maj',
- 'extra' => 'extra'
- );
- // -------------------------------
- // spip_caches
- // checked dec 12
- // -------------------------------
- // not in agora
- // -------------------------------
- // spip_documents
- // checked dec 12
- // -------------------------------
- $spip_documents = array(
- 'id_document' => 'id_document',
- 'id_vignette' => 'id_vignette',
- 'id_type' => 'id_type',
- 'titre' => 'titre',
- 'date_heure' => 'date',
- 'descriptif' => 'descriptif',
- 'fichier' => 'fichier',
- 'taille' => 'taille',
- 'largeur' => 'largeur',
- 'hauteur' => 'hauteur',
- 'mode_spip' => 'mode',
- 'idx' => 'idx'
- );
- // -------------------------------
- // spip_documents_articles
- // checked dec 12
- // -------------------------------
- $spip_documents_articles = array(
- 'id_document' =>'id_document',
- 'id_article' =>'id_article'
- );
- // -------------------------------
- // spip_documents_breves
- // checked dec 12
- // -------------------------------
- $spip_documents_breves = array(
- 'id_document' =>'id_document',
- 'id_breve' =>'id_breve'
- );
- // -------------------------------
- // spip_documents_rubriques
- // checked dec 12
- // -------------------------------
- $spip_documents_rubriques = array(
- 'id_document' =>'id_document',
- 'id_rubrique' =>'id_rubrique'
- );
- // -------------------------------
- // spip_forum
- // checked dec 12
- // -------------------------------
- $spip_forum = array(
- 'id_forum' =>'id_forum',
- 'id_parent' =>'id_parent',
- 'id_rubrique' =>'id_rubrique',
- 'id_article' =>'id_article',
- 'id_breve' =>'id_breve',
- 'date_heure' =>'date_heure',
- 'titre' =>'titre',
- 'texte' =>'texte',
- 'auteur' =>'auteur',
- 'email_auteur' =>'email_auteur',
- 'nom_site' =>'nom_site',
- 'url_site' =>'url_site',
- 'statut' =>'statut',
- 'ip' =>'ip',
- 'maj' =>'maj',
- 'id_auteur' =>'id_auteur',
- 'id_message' =>'id_message',
- 'id_syndic' =>'id_syndic'
- );
- // -------------------------------
- // spip_groupes_mots
- // checked dec 12
- // -------------------------------
- $spip_groupes_mots = array(
- 'id_groupe' =>'id_groupe',
- 'titre' =>'titre',
- 'unseul' =>'unseul',
- 'obligatoire' =>'obligatoire',
- 'articles' =>'articles',
- 'breves' =>'breves',
- 'rubriques' =>'rubriques',
- 'syndic' =>'syndic',
- 'forum' =>'forum',
- 'maj' =>'maj'
- );
- /*
- skipped, to rebuild
- // -------------------------------
- // spip_index
- // checked dec 12
- // convert id_article => id_objet + id_table <=> article
- // -------------------------------
- $spip_index = array(
- 'hash' =>'hash',
- 'points' =>'points',
- 'id_article' =>'id_objet',
- 'id_table' =>'id_table'
- );
- // -------------------------------
- // spip_index_dico
- // -------------------------------
- $spip_index_dico = array(
- 'hash' =>'hash',
- 'dico' =>'dico'
- );
- */
- // -------------------------------
- // spip_messages
- // checked dec 12
- // -------------------------------
- $spip_messages = array(
- 'id_message' =>'id_message',
- 'titre' =>'titre',
- 'texte' =>'texte',
- 'type' =>'type',
- 'date_heure' =>'date_heure',
- 'date_fin' =>'date_fin',
- 'rv' =>'rv',
- 'statut' =>'statut',
- 'id_auteur' =>'id_auteur',
- 'maj' =>'maj'
- );
- /*
- skipped rebuild
- // -------------------------------
- // spip_meta
- // checked dec 12
- // -------------------------------
- $spip_meta = array(
- 'nom' =>'nom',
- 'valeur' =>'valeur',
- 'maj' =>'maj'
- );
- // -------------------------------
- // spip_mots
- // -------------------------------
- $spip_mots = array(
- 'id_mot' =>'id_mot',
- 'titre' =>'titre',
- 'descriptif' =>'descriptif',
- 'texte' =>'texte',
- 'id_groupe' =>'id_groupe',
- 'type' =>'type',
- 'extra' =>'extra',
- 'idx' =>'idx',
- 'url_propre' =>'url_propre',
- 'maj' =>'maj'
- );
- // -------------------------------
- // spip_mots_articles
- // -------------------------------
- $spip_mots_articles = array(
- 'id_mot' =>'id_mot',
- 'id_article' =>'id_article'
- );
- // -------------------------------
- // spip_mots_breves
- // -------------------------------
- $spip_mots_breves = array(
- 'id_mot' =>'id_mot',
- 'id_breve' =>'id_breve'
- );
- // -------------------------------
- // spip_mots_documents
- // -------------------------------
- $spip_mots_documents = array(
- 'id_mot' =>'id_mot',
- 'id_document' =>'id_document'
- );
- // -------------------------------
- // spip_mots_forum
- // -------------------------------
- $spip_mots_forum = array(
- 'id_mot' =>'id_mot',
- 'id_forum' =>'id_forum'
- );
- // -------------------------------
- // spip_mots_rubriques
- // -------------------------------
- $spip_mots_rubriques = array(
- 'id_mot' =>'id_mot',
- 'id_rubrique' =>'id_rubrique'
- );
- // -------------------------------
- // spip_mots_syndic
- // -------------------------------
- $spip_mots_syndic = array(
- 'id_mot' =>'id_mot',
- 'id_syndic' =>'id_syndic'
- );
- */
- /*
- skipped, not in agora
- // -------------------------------
- // spip_ortho_cache
- // -------------------------------
- $spip_ortho_cache = array(
- 'lang' =>'lang',
- 'mot' =>'mot',
- 'ok' =>'ok',
- 'suggest' =>'suggest',
- 'maj' =>'maj'
- );
- // -------------------------------
- // spip_ortho_dico
- // -------------------------------
- $spip_ortho_dico = array(
- 'lang' =>'lang',
- 'mot' =>'mot',
- 'id_auteur' =>'id_auteur',
- 'maj' =>'maj'
- );
- */
- // -------------------------------
- // spip_petitions
- // checked dec 12
- // -------------------------------
- $spip_petitions = array(
- 'id_article' =>'id_article',
- 'email_unique' =>'email_unique',
- 'site_obli' =>'site_obli',
- 'site_unique' =>'site_unique',
- 'message' =>'message',
- 'texte' =>'texte',
- 'maj' =>'maj'
- );
- // -------------------------------
- // spip_referers
- // checked dec 12
- // -------------------------------
- $spip_referers = array(
- 'referer_md5' =>'referer_md5',
- 'date_heure' =>'date',
- 'referer' =>'referer',
- 'visites' =>'visites',
- 'visites_jour' =>'visites_jour',
- 'maj' =>'maj'
- );
- // -------------------------------
- // spip_referers_articles
- // -------------------------------
- $spip_referers_articles = array(
- 'id_article' =>'id_article',
- 'referer_md5' =>'referer_md5',
- 'date_heure' =>'date',
- 'referer' =>'referer',
- 'visites' =>'visites',
- 'maj' =>'maj'
- );
- // -------------------------------
- // spip_signatures
- // checked dec 12
- // -------------------------------
- $spip_signatures = array(
- 'id_signature' =>'id_signature',
- 'id_article' =>'id_article',
- 'date_time' =>'date_time',
- 'nom_email' =>'nom_email',
- 'ad_email' =>'ad_email',
- 'nom_site' =>'nom_site',
- 'url_site' =>'url_site',
- 'message' =>'message',
- 'statut' =>'statut',
- 'maj' =>'maj'
- );
- /*
- skipped, not in agora
- // -------------------------------
- // spip_syndic
- // -------------------------------
- $spip_syndic = array(
- 'id_syndic' =>'id_syndic',
- 'id_rubrique' =>'id_rubrique',
- 'id_secteur' =>'id_secteur',
- 'nom_site' =>'nom_site',
- 'url_site' =>'url_site',
- 'url_syndic' =>'url_syndic',
- 'descriptif' =>'descriptif',
- 'url_propre' =>'url_propre',
- 'idx' =>'idx',
- 'maj' =>'maj',
- 'syndication' =>'syndication',
- 'statut' =>'statut',
- 'date' =>'date',
- 'date_syndic' =>'date_syndic',
- 'date_index' =>'date_index',
- 'extra' =>'extra',
- 'moderation' =>'moderation',
- 'miroir' =>'miroir',
- 'oubli' =>'oubli',
- 'resume' =>'resume'
- );
- */
- // -------------------------------
- // spip_syndic_articles
- // checked dec 12
- // -------------------------------
- $spip_syndic_articles = array(
- 'id_syndic_article' =>'id_syndic_article',
- 'id_syndic' =>'id_syndic',
- 'titre' =>'titre',
- 'url' =>'url',
- 'date_heure' =>'date',
- 'lesauteurs' =>'lesauteurs',
- 'maj' =>'maj',
- 'statut' =>'statut',
- 'descriptif' =>'descriptif'
- );
- // -------------------------------
- // spip_types_documents
- // convert IDs
- // checked dec 12
- // -------------------------------
- $spip_types_documents = array(
- 'id_type' =>'id_type',
- 'titre' =>'titre',
- 'descriptif' =>'descriptif',
- 'extension' =>'extension',
- 'mime_type' =>'mime_type',
- 'inclus' =>'inclus',
- 'upload' =>'upload',
- 'maj' =>'maj'
- );
- /*
- skipped, not in agora
- // -------------------------------
- // spip_versions
- // -------------------------------
- $spip_versions = array(
- 'id_article' =>'id_article',
- 'id_version' =>'id_version',
- 'date' =>'date',
- 'id_auteur' =>'id_auteur',
- 'titre_version' =>'titre_version',
- 'permanent' =>'permanent',
- 'champs' =>'champs'
- );
- // -------------------------------
- // spip_versions_fragments
- // -------------------------------
- $spip_versions_fragments = array(
- 'id_fragment' =>'id_fragment',
- 'version_min' =>'version_min',
- 'version_max' =>'version_max',
- 'id_article' =>'id_article',
- 'compress' =>'compress',
- 'fragment' =>'fragment'
- );
- */
- // -------------------------------
- // spip_visites
- // checked dec 12
- // -------------------------------
- $spip_visites = array(
- 'date_heure' =>'date',
- 'visites' =>'visites',
- 'maj' =>'maj'
- );
- // -------------------------------
- // spip_visites_articles
- // checked dec 12
- // -------------------------------
- $spip_visites_articles = array(
- 'date_heure' =>'date',
- 'id_article' =>'id_article',
- 'visites' =>'visites',
- 'maj' =>'maj'
- );
- // ----------------------------------------
- // table to migrate
- // ----------------------------------------
- $table_to_migrate = array(
- 1 => array('from' => 'spip_rubriques',
- 'to' => 'spip_rubriques',
- 'field' => $spip_rubriques
- ),
- 2 => array('from' => 'spip_articles',
- 'to' => 'spip_articles',
- 'field' => $spip_articles
- ),
- 3 => array('from' => 'spip_auteurs',
- 'to' => 'spip_auteurs',
- 'field' => $spip_auteurs
- ),
- 4 => array('from' => 'spip_auteurs_messages',
- 'to' => 'spip_auteurs_messages',
- 'field' => $spip_auteurs_messages
- ),
- 5 => array('from' => 'spip_auteurs_articles',
- 'to' => 'spip_auteurs_articles',
- 'field' => $spip_auteurs_articles
- ),
- 6 => array('from' => 'spip_auteurs_rubriques',
- 'to' => 'spip_auteurs_rubriques',
- 'field' => $spip_auteurs_rubriques
- ),
- 7 => array('from' => 'spip_breves',
- 'to' => 'spip_breves',
- 'field' => $spip_breves
- ),
- 8 => array('from' => 'spip_documents',
- 'to' => 'spip_documents',
- 'field' => $spip_documents
- ),
- 9 => array('from' => 'spip_documents_articles',
- 'to' => 'spip_documents_articles',
- 'field' => $spip_documents_articles
- ),
- 10 => array('from' => 'spip_documents_breves',
- 'to' => 'spip_documents_breves',
- 'field' => $spip_documents_breves
- ),
- 11 => array('from' => 'spip_documents_rubriques',
- 'to' => 'spip_documents_rubriques',
- 'field' => $spip_documents_rubriques
- ),
- 12 => array('from' => 'spip_forum',
- 'to' => 'spip_forum',
- 'field' => $spip_forum
- ),
- 13 => array('from' => 'spip_groupes_mots',
- 'to' => 'spip_groupes_mots',
- 'field' => $spip_groupes_mots
- ),
- 14 => array('from' => 'spip_petitions',
- 'to' => 'spip_petitions',
- 'field' => $spip_petitions
- ),
- 15 => array('from' => 'spip_referers',
- 'to' => 'spip_referers',
- 'field' => $spip_referers
- ),
- 16 => array('from' => 'spip_referers_articles',
- 'to' => 'spip_referers_articles',
- 'field' => $spip_referers_articles
- ),
- 17 => array('from' => 'spip_signatures',
- 'to' => 'spip_signatures',
- 'field' => $spip_signatures
- ),
- 18 => array('from' => 'spip_syndic_articles',
- 'to' => 'spip_syndic_articles',
- 'field' => $spip_syndic_articles
- ),
- 19 => array('from' => 'spip_visites',
- 'to' => 'spip_visites',
- 'field' => $spip_visites
- )
- );
- // ----------------------------------------
- // Option surcharge du nom de la table spip auteurs
- // ----------------------------------------
- $spip_auteurs_source = 'spip_auteurs';
- $spip_auteurs_target = 'spip_auteurs';
- // ----------------------------------------
- // Conversion statuts auteurs, choix des position
- // ----------------------------------------
- $statut_auteur = array(
- 2 => '1comite',
- 4 => '1comite',
- 8 => '0minirezo',
- 16 => '0minirezo'
- );
- ?>