From 2d4ede82c9f1be395fa280f40a17ff689719b725 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Sun, 19 Sep 2010 18:53:28 +0000
Subject: [PATCH] la description des vieilles bases n'a plus rien a faire dans
 le noyau suite a la sortie en plugin de la fonction de dump XML

---
 .gitattributes                                |  30 --
 ecrire/maj/vieille_base/10000/auxiliaires.php | 271 ----------
 ecrire/maj/vieille_base/10000/create.php      |  79 ---
 ecrire/maj/vieille_base/10000/serial.php      | 390 ---------------
 ecrire/maj/vieille_base/10000/typedoc.php     | 208 --------
 ecrire/maj/vieille_base/13000/auxiliaires.php | 331 ------------
 ecrire/maj/vieille_base/13000/create.php      |  35 --
 ecrire/maj/vieille_base/13000/serial.php      | 393 ---------------
 ecrire/maj/vieille_base/13000/typedoc.php     | 224 ---------
 ecrire/maj/vieille_base/1813/create.php       |  52 --
 ecrire/maj/vieille_base/1813/inc_auxbase.php  | 431 ----------------
 .../maj/vieille_base/1813/inc_serialbase.php  | 361 --------------
 ecrire/maj/vieille_base/1813/inc_typebase.php | 153 ------
 ecrire/maj/vieille_base/1821/create.php       |  52 --
 ecrire/maj/vieille_base/1821/inc_auxbase.php  | 471 ------------------
 .../maj/vieille_base/1821/inc_serialbase.php  | 368 --------------
 ecrire/maj/vieille_base/1821/inc_typebase.php | 157 ------
 ecrire/maj/vieille_base/1915/auxiliaires.php  | 378 --------------
 ecrire/maj/vieille_base/1915/create.php       |  53 --
 ecrire/maj/vieille_base/1915/serial.php       | 387 --------------
 ecrire/maj/vieille_base/1915/typedoc.php      | 197 --------
 ecrire/maj/vieille_base/1917/auxiliaires.php  | 378 --------------
 ecrire/maj/vieille_base/1917/create.php       |  61 ---
 ecrire/maj/vieille_base/1917/serial.php       | 386 --------------
 ecrire/maj/vieille_base/1917/typedoc.php      | 197 --------
 ecrire/maj/vieille_base/1927/auxiliaires.php  | 378 --------------
 ecrire/maj/vieille_base/1927/create.php       |  52 --
 ecrire/maj/vieille_base/1927/serial.php       | 372 --------------
 ecrire/maj/vieille_base/1927/typedoc.php      | 211 --------
 ecrire/maj/vieille_base/charger.php           |  54 --
 ecrire/maj/vieille_base/create.php            |  70 ---
 31 files changed, 7180 deletions(-)
 delete mode 100644 ecrire/maj/vieille_base/10000/auxiliaires.php
 delete mode 100644 ecrire/maj/vieille_base/10000/create.php
 delete mode 100644 ecrire/maj/vieille_base/10000/serial.php
 delete mode 100644 ecrire/maj/vieille_base/10000/typedoc.php
 delete mode 100644 ecrire/maj/vieille_base/13000/auxiliaires.php
 delete mode 100644 ecrire/maj/vieille_base/13000/create.php
 delete mode 100644 ecrire/maj/vieille_base/13000/serial.php
 delete mode 100644 ecrire/maj/vieille_base/13000/typedoc.php
 delete mode 100644 ecrire/maj/vieille_base/1813/create.php
 delete mode 100644 ecrire/maj/vieille_base/1813/inc_auxbase.php
 delete mode 100644 ecrire/maj/vieille_base/1813/inc_serialbase.php
 delete mode 100644 ecrire/maj/vieille_base/1813/inc_typebase.php
 delete mode 100644 ecrire/maj/vieille_base/1821/create.php
 delete mode 100644 ecrire/maj/vieille_base/1821/inc_auxbase.php
 delete mode 100644 ecrire/maj/vieille_base/1821/inc_serialbase.php
 delete mode 100644 ecrire/maj/vieille_base/1821/inc_typebase.php
 delete mode 100644 ecrire/maj/vieille_base/1915/auxiliaires.php
 delete mode 100644 ecrire/maj/vieille_base/1915/create.php
 delete mode 100644 ecrire/maj/vieille_base/1915/serial.php
 delete mode 100644 ecrire/maj/vieille_base/1915/typedoc.php
 delete mode 100644 ecrire/maj/vieille_base/1917/auxiliaires.php
 delete mode 100644 ecrire/maj/vieille_base/1917/create.php
 delete mode 100644 ecrire/maj/vieille_base/1917/serial.php
 delete mode 100644 ecrire/maj/vieille_base/1917/typedoc.php
 delete mode 100644 ecrire/maj/vieille_base/1927/auxiliaires.php
 delete mode 100644 ecrire/maj/vieille_base/1927/create.php
 delete mode 100644 ecrire/maj/vieille_base/1927/serial.php
 delete mode 100644 ecrire/maj/vieille_base/1927/typedoc.php
 delete mode 100644 ecrire/maj/vieille_base/charger.php
 delete mode 100644 ecrire/maj/vieille_base/create.php

diff --git a/.gitattributes b/.gitattributes
index d927095c5c..23414c5503 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -346,36 +346,6 @@ ecrire/maj/v017.php -text
 ecrire/maj/v018.php -text
 ecrire/maj/v019.php -text
 ecrire/maj/v019_pre193.php -text
-ecrire/maj/vieille_base/10000/auxiliaires.php -text
-ecrire/maj/vieille_base/10000/create.php -text
-ecrire/maj/vieille_base/10000/serial.php -text
-ecrire/maj/vieille_base/10000/typedoc.php -text
-ecrire/maj/vieille_base/13000/auxiliaires.php -text
-ecrire/maj/vieille_base/13000/create.php -text
-ecrire/maj/vieille_base/13000/serial.php -text
-ecrire/maj/vieille_base/13000/typedoc.php -text
-ecrire/maj/vieille_base/1813/create.php -text
-ecrire/maj/vieille_base/1813/inc_auxbase.php -text
-ecrire/maj/vieille_base/1813/inc_serialbase.php -text
-ecrire/maj/vieille_base/1813/inc_typebase.php -text
-ecrire/maj/vieille_base/1821/create.php -text
-ecrire/maj/vieille_base/1821/inc_auxbase.php -text
-ecrire/maj/vieille_base/1821/inc_serialbase.php -text
-ecrire/maj/vieille_base/1821/inc_typebase.php -text
-ecrire/maj/vieille_base/1915/auxiliaires.php -text
-ecrire/maj/vieille_base/1915/create.php -text
-ecrire/maj/vieille_base/1915/serial.php -text
-ecrire/maj/vieille_base/1915/typedoc.php -text
-ecrire/maj/vieille_base/1917/auxiliaires.php -text
-ecrire/maj/vieille_base/1917/create.php -text
-ecrire/maj/vieille_base/1917/serial.php -text
-ecrire/maj/vieille_base/1917/typedoc.php -text
-ecrire/maj/vieille_base/1927/auxiliaires.php -text
-ecrire/maj/vieille_base/1927/create.php -text
-ecrire/maj/vieille_base/1927/serial.php -text
-ecrire/maj/vieille_base/1927/typedoc.php -text
-ecrire/maj/vieille_base/charger.php -text
-ecrire/maj/vieille_base/create.php -text
 ecrire/notifications/article_propose.html -text
 ecrire/notifications/article_publie.html -text
 ecrire/notifications/article_valide.html -text
diff --git a/ecrire/maj/vieille_base/10000/auxiliaires.php b/ecrire/maj/vieille_base/10000/auxiliaires.php
deleted file mode 100644
index 21e9b470d1..0000000000
--- a/ecrire/maj/vieille_base/10000/auxiliaires.php
+++ /dev/null
@@ -1,271 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2007                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-$spip_petitions = array(
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"email_unique"	=> "CHAR (3) DEFAULT '' NOT NULL",
-		"site_obli"	=> "CHAR (3) DEFAULT '' NOT NULL",
-		"site_unique"	=> "CHAR (3) DEFAULT '' NOT NULL",
-		"message"	=> "CHAR (3) DEFAULT '' NOT NULL",
-		"texte"	=> "LONGTEXT DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_petitions_key = array(
-		"PRIMARY KEY"	=> "id_article");
-
-$spip_visites = array(
-		"date"	=> "DATE NOT NULL",
-		"visites"	=> "int UNSIGNED DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_key = array(
-		"PRIMARY KEY"	=> "date");
-
-$spip_visites_articles = array(
-		"date"	=> "DATE NOT NULL",
-		"id_article"	=> "int UNSIGNED NOT NULL",
-		"visites"	=> "int UNSIGNED DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_articles_key = array(
-		"PRIMARY KEY"	=> "date, id_article");
-
-$spip_referers = array(
-		"referer_md5"	=> "bigint UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255)",
-		"visites"	=> "int UNSIGNED NOT NULL",
-		"visites_jour"	=> "int UNSIGNED NOT NULL",
-		"visites_veille"=> "int UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_key = array(
-		"PRIMARY KEY"	=> "referer_md5");
-
-$spip_referers_articles = array(
-		"id_article"	=> "int UNSIGNED NOT NULL",
-		"referer_md5"	=> "bigint UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) DEFAULT '' NOT NULL",
-		"visites"	=> "int UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, referer_md5",
-		"KEY referer_md5"	=> "referer_md5");
-
-$spip_auteurs_articles = array(
-		"id_auteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_articles_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_article",
-		"KEY id_article"	=> "id_article");
-
-$spip_auteurs_rubriques = array(
-		"id_auteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_rubrique",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_auteurs_messages = array(
-		"id_auteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_message"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"vu"		=> "CHAR (3)");
-
-$spip_auteurs_messages_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_message",
-		"KEY id_message"	=> "id_message");
-
-
-$spip_documents_articles = array(
-		"id_document"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"vu"	=> "ENUM('non', 'oui') DEFAULT 'non' NOT NULL");
-
-$spip_documents_articles_key = array(
-		"PRIMARY KEY"		=> "id_article, id_document",
-		"KEY id_document"	=> "id_document");
-
-$spip_documents_rubriques = array(
-		"id_document"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"vu"	=> "ENUM('non', 'oui') DEFAULT 'non' NOT NULL");
-
-$spip_documents_rubriques_key = array(
-		"PRIMARY KEY"		=> "id_rubrique, id_document",
-		"KEY id_document"	=> "id_document");
-
-$spip_documents_breves = array(
-		"id_document"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"vu"	=> "ENUM('non', 'oui') DEFAULT 'non' NOT NULL");
-
-$spip_documents_breves_key = array(
-		"PRIMARY KEY"		=> "id_breve, id_document",
-		"KEY id_document"	=> "id_document");
-
-$spip_mots_articles = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_breves = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_rubriques = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_syndic = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_forum = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_forum"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_documents = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_document"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_documents_key = array(
-		"PRIMARY KEY"	=> "id_document, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_meta = array(
-		"nom"	=> "VARCHAR (255) NOT NULL",
-		"valeur"	=> "text DEFAULT ''",
-		"impt"	=> "ENUM('non', 'oui') DEFAULT 'oui' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_meta_key = array(
-		"PRIMARY KEY"	=> "nom");
-
-$spip_versions = array (
-		"id_article"	=> "bigint(21) NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"id_auteur"	=> "VARCHAR(23) DEFAULT '' NOT NULL", # stocke aussi IP(v6)
-		"titre_version"	=> "text DEFAULT '' NOT NULL",
-		"permanent"	=> "char(3)",
-		"champs"	=> "text");
-
-$spip_versions_key = array (
-		"PRIMARY KEY"	=> "id_article, id_version",
-		"KEY date"	=> "id_article, date",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_versions_fragments = array(
-		"id_fragment"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_min"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_max"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) NOT NULL",
-		"compress"	=> "tinyint NOT NULL",
-		"fragment"	=> "longblob"  # ici c'est VRAIMENT un blob (on y stocke du gzip)
-	);
-
-$spip_versions_fragments_key = array(
-	     "PRIMARY KEY"	=> "id_article, id_fragment, version_min");
-
-
-
-
-global $tables_auxiliaires;
-
-$tables_auxiliaires['spip_petitions'] = array(
-	'field' => &$spip_petitions,
-	'key' => &$spip_petitions_key
-);
-$tables_auxiliaires['spip_visites'] = array(
-	'field' => &$spip_visites,
-	'key' => &$spip_visites_key);
-$tables_auxiliaires['spip_visites_articles'] = array(
-	'field' => &$spip_visites_articles,
-	'key' => &$spip_visites_articles_key);
-$tables_auxiliaires['spip_referers'] = array(
-	'field' => &$spip_referers,
-	'key' => &$spip_referers_key);
-$tables_auxiliaires['spip_referers_articles'] = array(
-	'field' => &$spip_referers_articles,
-	'key' => &$spip_referers_articles_key);
-$tables_auxiliaires['spip_auteurs_articles'] = array(
-	'field' => &$spip_auteurs_articles,
-	'key' => &$spip_auteurs_articles_key);
-$tables_auxiliaires['spip_auteurs_rubriques'] = array(
-	'field' => &$spip_auteurs_rubriques,
-	'key' => &$spip_auteurs_rubriques_key);
-$tables_auxiliaires['spip_auteurs_messages'] = array(
-	'field' => &$spip_auteurs_messages,
-	'key' => &$spip_auteurs_messages_key);
-$tables_auxiliaires['spip_documents_articles'] = array(
-	'field' => &$spip_documents_articles,
-	'key' => &$spip_documents_articles_key);
-$tables_auxiliaires['spip_documents_rubriques'] = array(
-	'field' => &$spip_documents_rubriques,
-	'key' => &$spip_documents_rubriques_key);
-$tables_auxiliaires['spip_documents_breves'] = array(
-	'field' => &$spip_documents_breves,
-	'key' => &$spip_documents_breves_key);
-$tables_auxiliaires['spip_mots_articles'] = array(
-	'field' => &$spip_mots_articles,
-	'key' => &$spip_mots_articles_key);
-$tables_auxiliaires['spip_mots_breves'] = array(
-	'field' => &$spip_mots_breves,
-	'key' => &$spip_mots_breves_key);
-$tables_auxiliaires['spip_mots_rubriques'] = array(
-	'field' => &$spip_mots_rubriques,
-	'key' => &$spip_mots_rubriques_key);
-$tables_auxiliaires['spip_mots_syndic'] = array(
-	'field' => &$spip_mots_syndic,
-	'key' => &$spip_mots_syndic_key);
-$tables_auxiliaires['spip_mots_forum'] = array(
-	'field' => &$spip_mots_forum,
-	'key' => &$spip_mots_forum_key);
-$tables_auxiliaires['spip_mots_documents'] = array(
-	'field' => &$spip_mots_documents,
-	'key' => &$spip_mots_documents_key);
-$tables_auxiliaires['spip_meta'] = array(
-	'field' => &$spip_meta,
-	'key' => &$spip_meta_key);
-$tables_auxiliaires['spip_versions'] = array(
-	'field' => &$spip_versions,
-	'key' => &$spip_versions_key);
-$tables_auxiliaires['spip_versions_fragments'] = array(
-	'field' => &$spip_versions_fragments,
-	'key' => &$spip_versions_fragments_key);
-?>
diff --git a/ecrire/maj/vieille_base/10000/create.php b/ecrire/maj/vieille_base/10000/create.php
deleted file mode 100644
index 89a52e0829..0000000000
--- a/ecrire/maj/vieille_base/10000/create.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2007                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-include_spip('maj/vieille_base/10000/serial');
-include_spip('maj/vieille_base/10000/auxiliaires');
-include_spip('maj/vieille_base/10000/typedoc');
-
-// http://doc.spip.org/@creer_base
-function maj_vieille_base_10000_create($server='') {
-	global $tables_principales, $tables_auxiliaires, $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-	// Note: les mises à jour reexecutent ce code pour s'assurer
-	// de la conformite de la base
-	// pas de panique sur  "already exists" et "duplicate entry" donc.
-
-	$fcreate = sql_serveur('create', $server);
-	$freplace = sql_serveur('replace', $server);
-	$fupdate = sql_serveur('update', $server);
-	foreach($tables_principales as $k => $v)
-		$fcreate($k, $v['field'], $v['key'], true);
-
-	foreach($tables_auxiliaires as $k => $v)
-		$fcreate($k, $v['field'], $v['key'], false);
-
-
-	// Init ou Re-init ==> replace pas insert
-	$desc = $tables_principales['spip_types_documents'];
-	foreach($tables_images as $k => $v) {
-		$freplace('spip_types_documents',
-			 array('extension' => $k,
-			       'inclus' => 'image',
-			       'titre' => $v),
-			 $desc);
-	}
-
-	foreach($tables_sequences as $k => $v)
-		$freplace('spip_types_documents',
-			 array('extension' => $k,
-			       'titre' => $v,
-			       'inclus'=> 'embed'),
-			 $desc);
-
-	foreach($tables_documents as $k => $v)
-		$freplace('spip_types_documents',
-			 array('extension' => $k,
-			       'titre' => $v,
-			       'inclus' => 'non'),
-			 $desc);
-
-	foreach ($tables_mime as $extension => $type_mime)
-		$freplace('spip_types_documents',
-			 array("mime_type" => $type_mime,
-			       "extension" => $extension),
-			 $desc);
-}
-
-// http://doc.spip.org/@stripslashes_base
-/*
-function stripslashes_base($table, $champs) {
-	$modifs = '';
-	reset($champs);
-	while (list(, $champ) = each($champs)) {
-		$modifs[] = $champ . '=REPLACE(REPLACE(' .$champ. ',"\\\\\'", "\'"), \'\\\\"\', \'"\')';
-	}
-	spip_query("UPDATE $table SET ".join(',', $modifs));
-
-}*/
-
-?>
diff --git a/ecrire/maj/vieille_base/10000/serial.php b/ecrire/maj/vieille_base/10000/serial.php
deleted file mode 100644
index c8b45bb6d9..0000000000
--- a/ecrire/maj/vieille_base/10000/serial.php
+++ /dev/null
@@ -1,390 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2007                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-
-$spip_articles = array(
-		"id_article"	=> "bigint(21) NOT NULL",
-		"surtitre"	=> "text DEFAULT '' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"soustitre"	=> "text DEFAULT '' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"chapo"	=> "mediumtext DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"ps"	=> "mediumtext DEFAULT '' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"date_redac"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"visites"	=> "integer DEFAULT '0' NOT NULL",
-		"referers"	=> "integer DEFAULT '0' NOT NULL",
-		"popularite"	=> "DOUBLE DEFAULT '0' NOT NULL",
-		"accepter_forum"	=> "CHAR(3) DEFAULT '' NOT NULL",
-		"date_modif"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"		=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"id_trad"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"extra"		=> "longtext NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"nom_site"	=> "tinytext DEFAULT '' NOT NULL",
-		"url_site"	=> "VARCHAR(255) DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255) DEFAULT '' NOT NULL");
-
-$spip_articles_key = array(
-		"PRIMARY KEY"		=> "id_article",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY id_trad"		=> "id_trad",
-		"KEY lang"			=> "lang",
-		"KEY statut"		=> "statut, date",
-		"KEY url_site"		=> "url_site",
-		"KEY date_modif"	=> "date_modif",
-		"KEY url_propre"	=> "url_propre");
-$spip_articles_join = array(
-		"id_article"=>"id_article",
-		"id_rubrique"=>"id_rubrique");
-
-$spip_auteurs = array(
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"nom"	=> "text DEFAULT '' NOT NULL",
-		"bio"	=> "text DEFAULT '' NOT NULL",
-		"email"	=> "tinytext DEFAULT '' NOT NULL",
-		"nom_site"	=> "tinytext DEFAULT '' NOT NULL",
-		"url_site"	=> "text DEFAULT '' NOT NULL",
-		"login"	=> "VARCHAR(255) BINARY",
-		"pass"	=> "tinytext DEFAULT '' NOT NULL",
-		"low_sec"	=> "tinytext DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(255)  DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"pgp"	=> "TEXT DEFAULT '' NOT NULL",
-		"htpass"	=> "tinytext DEFAULT '' NOT NULL",
-		"en_ligne"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"imessage"	=> "VARCHAR(3)",
-		"messagerie"	=> "VARCHAR(3)",
-		"alea_actuel"	=> "tinytext",
-		"alea_futur"	=> "tinytext",
-		"prefs"	=> "tinytext",
-		"cookie_oubli"	=> "tinytext",
-		"source"	=> "VARCHAR(10) DEFAULT 'spip' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255)",
-		"extra"	=> "longtext NULL");
-
-$spip_auteurs_key = array(
-		"PRIMARY KEY"	=> "id_auteur",
-		"KEY login"	=> "login",
-		"KEY statut"	=> "statut",
-		"KEY lang"	=> "lang",
-		"KEY en_ligne"	=> "en_ligne",
-		"KEY url_propre"	=> "url_propre");
-$spip_auteurs_join = array(
-		"id_auteur"=>"id_auteur",
-		"login"=>"login");
-
-
-$spip_breves = array(
-		"id_breve"	=> "bigint(21) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"lien_titre"	=> "text DEFAULT '' NOT NULL",
-		"lien_url"	=> "text DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(6)  DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"maj"	=> "TIMESTAMP",
-		"extra"	=> "longtext NULL",
-		"url_propre" => "VARCHAR(255) DEFAULT '' NOT NULL");
-
-$spip_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY url_propre"	=> "url_propre");
-$spip_breves_join = array(
-		"id_breve"=>"id_breve",
-		"id_rubrique"=>"id_rubrique");
-
-$spip_messages = array(
-		"id_message"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"type"	=> "varchar(6) DEFAULT '' NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_fin"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"rv"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(6)  DEFAULT '0' NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_messages_key = array(
-		"PRIMARY KEY"	=> "id_message",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_mots = array(
-		"id_mot"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"type"	=> "text DEFAULT '' NOT NULL",
-		"extra"	=> "longtext NULL",
-		"url_propre" => "VARCHAR(255) DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_mots_key = array(
-		"PRIMARY KEY"	=> "id_mot",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_groupes_mots = array(
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"unseul"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"obligatoire"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"articles"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"breves"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"rubriques"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"syndic"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"minirezo"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"comite"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"forum"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_groupes_mots_key = array(
-		"PRIMARY KEY"	=> "id_groupe");
-
-$spip_rubriques = array(
-		"id_rubrique"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"id_import"	=> "bigint DEFAULT '0'",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"extra"	=> "longtext NULL",
-		"url_propre" => "VARCHAR(255) DEFAULT '' NOT NULL",
-		"statut_tmp"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"date_tmp"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL"
-		);
-
-$spip_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique",
-		"KEY lang"	=> "lang",
-		"KEY id_parent"	=> "id_parent",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_documents = array(
-		"id_document"	=> "bigint(21) NOT NULL",
-		"id_vignette"	=> "bigint(21) DEFAULT '0' NOT NULL",
-/*		"id_type"	=> "bigint(21) DEFAULT '0' NOT NULL", */
-		"extension"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"fichier"	=> "varchar(255) DEFAULT '' NOT NULL",
-		"taille"	=> "integer",
-		"largeur"	=> "integer",
-		"hauteur"	=> "integer",
-		"mode"	=> "ENUM('vignette', 'document') NOT NULL",//+distant
-		"distant"	=> "VARCHAR(3) DEFAULT 'non'",
-		"maj"	=> "TIMESTAMP");
-
-$spip_documents_key = array(
-		"PRIMARY KEY"	=> "id_document",
-		"KEY id_vignette"	=> "id_vignette",
-		"KEY mode"	=> "mode",
-		"KEY extension"	=> "extension");
-$spip_documents_join = array(
-		"id_document"=>"id_document",
-		"extension"=>"extension");
-
-$spip_types_documents = array(
-/*		"id_type"	=> "bigint(21) NOT NULL", */
-		"extension"	=> "varchar(10) DEFAULT '' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"mime_type"	=> "varchar(100) DEFAULT '' NOT NULL",
-		"inclus"	=> "ENUM('non', 'image', 'embed') NOT NULL DEFAULT 'non'",
-		"upload"	=> "ENUM('oui', 'non') NOT NULL DEFAULT 'oui'",
-		"maj"	=> "TIMESTAMP");
-
-$spip_types_documents_key = array(
-/*		"PRIMARY KEY"	=> "id_type",
-		"UNIQUE extension"	=> "extension",
-*/
-		"PRIMARY KEY"	=> "extension",
-		"KEY inclus"	=> "inclus");
-
-$spip_syndic = array(
-		"id_syndic"	=> "bigint(21) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"nom_site"	=> "text DEFAULT '' NOT NULL",
-		"url_site"	=> "text DEFAULT '' NOT NULL",
-		"url_syndic"	=> "text DEFAULT '' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"url_propre"	=> "VARCHAR(255) DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"syndication"	=> "VARCHAR(3) DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_syndic"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_index"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"extra"			=> "longtext NULL",
-		"moderation"	=> "VARCHAR(3) DEFAULT 'non'",
-		"miroir"	=> "VARCHAR(3) DEFAULT 'non'",
-		"oubli"	=> "VARCHAR(3) DEFAULT 'non'",
-		"resume"	=> "VARCHAR(3) DEFAULT 'oui'"
-);
-
-$spip_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY statut"	=> "statut, date_syndic",
-		"KEY url_propre"	=> "url_propre");
-$spip_syndic_join = array(
-		"id_syndic"=>"id_syndic",
-		"id_rubrique"=>"id_rubrique");
-		
-$spip_syndic_articles = array(
-		"id_syndic_article"	=> "bigint(21) NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"url"	=> "VARCHAR(255) DEFAULT '' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lesauteurs"	=> "text DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"url_source" => "TINYTEXT DEFAULT '' NOT NULL",
-		"source" => "TINYTEXT DEFAULT '' NOT NULL",
-		"tags" => "TEXT DEFAULT '' NOT NULL");
-
-$spip_syndic_articles_key = array(
-		"PRIMARY KEY"	=> "id_syndic_article",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY statut"	=> "statut",
-		"KEY url"	=> "url");
-$spip_syndic_articles_join = array(
-		"id_syndic_article"=>"id_syndic_article",
-		"id_syndic"=>"id_syndic");
-
-$spip_forum = array(
-		"id_forum"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_thread"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_thread"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "mediumtext DEFAULT '' NOT NULL",
-		"auteur"	=> "text DEFAULT '' NOT NULL",
-		"email_auteur"	=> "text DEFAULT '' NOT NULL",
-		"nom_site"	=> "text DEFAULT '' NOT NULL",
-		"url_site"	=> "text DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(8) DEFAULT '0' NOT NULL",
-		"ip"	=> "varchar(16) DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"id_auteur"	=> "bigint DEFAULT '0' NOT NULL",
-		"id_message"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum",
-		"KEY id_parent"	=> "id_parent",
-		"KEY id_article"	=> "id_article",
-		"KEY id_breve"	=> "id_breve",
-		"KEY id_message"	=> "id_message",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY statut"	=> "statut, date_heure",
-		"KEY date_thread" => "date_thread");
-$spip_forum_join = array(
-		"id_forum"=>"id_forum",
-		"id_parent"=>"id_parent",
-		"id_article"=>"id_article",
-		"id_breve"=>"id_breve",
-		"id_message"=>"id_message",
-		"id_syndic"=>"id_syndic",
-		"id_rubrique"=>"id_rubrique");
-
-$spip_signatures = array(
-		"id_signature"	=> "bigint(21) NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_time"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"nom_email"	=> "text DEFAULT '' NOT NULL",
-		"ad_email"	=> "text DEFAULT '' NOT NULL",
-		"nom_site"	=> "text DEFAULT '' NOT NULL",
-		"url_site"	=> "text DEFAULT '' NOT NULL",
-		"message"	=> "mediumtext DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_signatures_key = array(
-		"PRIMARY KEY"	=> "id_signature",
-		"KEY id_article"	=> "id_article",
-		"KEY statut" => "statut");
-$spip_signatures_join = array(
-		"id_signature"=>"id_signature",
-		"id_article"=>"id_article");
-
-
-global $tables_principales;
-
-/// Attention: mes_fonctions peut avoir deja defini cette variable
-/// il faut donc rajouter, mais pas reinitialiser
-
-$tables_principales['spip_articles'] =
-	array('field' => &$spip_articles, 'key' => &$spip_articles_key, 'join' => &$spip_articles_join);
-$tables_principales['spip_auteurs']  =
-	array('field' => &$spip_auteurs, 'key' => &$spip_auteurs_key,'join' => &$spip_auteurs_join);
-$tables_principales['spip_breves']   =
-	array('field' => &$spip_breves, 'key' => &$spip_breves_key,'join' => &$spip_breves_join);
-$tables_principales['spip_messages'] =
-	array('field' => &$spip_messages, 'key' => &$spip_messages_key);
-$tables_principales['spip_mots']     =
-	array('field' => &$spip_mots, 'key' => &$spip_mots_key);
-$tables_principales['spip_groupes_mots'] =
-	array('field' => &$spip_groupes_mots, 'key' => &$spip_groupes_mots_key);
-$tables_principales['spip_rubriques'] =
-	array('field' => &$spip_rubriques, 'key' => &$spip_rubriques_key);
-$tables_principales['spip_documents'] =
-	array('field' => &$spip_documents,  'key' => &$spip_documents_key, 'join' => &$spip_documents_join);
-$tables_principales['spip_types_documents']	=
-	array('field' => &$spip_types_documents, 'key' => &$spip_types_documents_key);
-$tables_principales['spip_syndic'] =
-	array('field' => &$spip_syndic, 'key' => &$spip_syndic_key, 'join' => &$spip_syndic_join);
-$tables_principales['spip_syndic_articles']	=
-	array('field' => &$spip_syndic_articles, 'key' => &$spip_syndic_articles_key, 'join' => &$spip_syndic_articles_join);
-$tables_principales['spip_forum'] =
-	array('field' => &$spip_forum,	'key' => &$spip_forum_key, 'join' => &$spip_forum_join);
-$tables_principales['spip_signatures'] =
-	array('field' => &$spip_signatures, 'key' => &$spip_signatures_key, 'join' => &$spip_signatures_join);
-
-?>
diff --git a/ecrire/maj/vieille_base/10000/typedoc.php b/ecrire/maj/vieille_base/10000/typedoc.php
deleted file mode 100644
index fd97463719..0000000000
--- a/ecrire/maj/vieille_base/10000/typedoc.php
+++ /dev/null
@@ -1,208 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2007                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-//
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-global $tables_images, $tables_sequences, $tables_documents, $tables_mime, $mime_alias;
-
-$tables_images = array(
-		       // Images reconnues par PHP
-		       'jpg' => 'JPEG', 
-		       'png' => 'PNG', 
-		       'gif' =>'GIF',
-
-		       // Autres images (peuvent utiliser le tag <img>)
-		       'bmp' => 'BMP',
-		       'psd' => 'Photoshop',
-		       'tif' => 'TIFF'
-		       );
-
-// Multimedia (peuvent utiliser le tag <embed>)
-
-$tables_sequences = array(
-			  'aiff' => 'AIFF',
-			  'asf' => 'Windows Media',
-			  'avi' => 'Windows Media',
-			  'flv' => 'Flash Video',
-			  'mid' => 'Midi',
-			  'mng' => 'MNG',
-			  'mov' => 'QuickTime',
-			  'mp3' => 'MP3',
-			  'mpg' => 'MPEG',
-			  'ogg' => 'Ogg',
-			  'qt' => 'QuickTime',
-			  'ra' => 'RealAudio',
-			  'ram' => 'RealAudio',
-			  'rm' => 'RealAudio',
-			  'swf' => 'Flash',
-			  'wav' => 'WAV',
-			  'wmv' => 'Windows Media',
-			  'svg' => 'Scalable Vector Graphics',
-				'mp4' => 'MPEG4'
-			  );
-
-// Documents varies
-$tables_documents = array(
-			  'abw' => 'Abiword',
-			  'ai' => 'Adobe Illustrator',
-			  'bz2' => 'BZip',
-			  'bin' => 'Binary Data',
-			  'blend' => 'Blender',
-			  'c' => 'C source',
-			  'css' => 'Cascading Style Sheet',
-			  'deb' => 'Debian',
-			  'doc' => 'Word',
-			  'djvu' => 'DjVu',
-			  'dvi' => 'LaTeX DVI',
-			  'eps' => 'PostScript',
-			  'gz' => 'GZ',
-			  'h' => 'C header',
-			  'html' => 'HTML',
-			  'pas' => 'Pascal',
-			  'pdf' => 'PDF',
-			  'pgn' => 'Portable Game Notation',
-			  'ppt' => 'PowerPoint',
-			  'ps' => 'PostScript',
-			  'rpm' => 'RedHat/Mandrake/SuSE',
-			  'rtf' => 'RTF',
-			  'sdd' => 'StarOffice',
-			  'sdw' => 'StarOffice',
-			  'sit' => 'Stuffit',
-			  'sxc' => 'OpenOffice Calc',
-			  'sxi' => 'OpenOffice Impress',
-			  'sxw' => 'OpenOffice',
-			  'tex' => 'LaTeX',
-			  'tgz' => 'TGZ',
-			  'torrent' => 'BitTorrent',
-			  'ttf' => 'TTF Font',
-			  'txt' => 'texte',
-			  'xcf' => 'GIMP multi-layer',
-			  'xls' => 'Excel',
-			  'xml' => 'XML',
-			  'zip' => 'Zip',
-
-			// open document format
-			'odt' => 'opendocument text',
-			'ods' => 'opendocument spreadsheet',
-			'odp' => 'opendocument presentation',
-			'odg' => 'opendocument graphics',
-			'odc' => 'opendocument chart',
-			'odf' => 'opendocument formula',
-			'odb' => 'opendocument database',
-			'odi' => 'opendocument image',
-			'odm' => 'opendocument text-master',
-			'ott' => 'opendocument text-template',
-			'ots' => 'opendocument spreadsheet-template',
-			'otp' => 'opendocument presentation-template',
-			'otg' => 'opendocument graphics-template',
-		
-			  );
-
-$tables_mime = array(
-		// Images reconnues par PHP
-		'jpg'=>'image/jpeg',
-		'png'=>'image/png',
-		'gif'=>'image/gif',
-
-		// Autres images (peuvent utiliser le tag <img>)
-		'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
-		'psd'=>'image/x-photoshop',	// pas IANA
-		'tif'=>'image/tiff',
-
-		// Multimedia (peuvent utiliser le tag <embed>)
-		'aiff'=>'audio/x-aiff',
-		'asf'=>'video/x-ms-asf',
-		'avi'=>'video/x-msvideo',
-		'flv' => 'video/x-flv',
-		'mid'=>'audio/midi',
-		'mng'=>'video/x-mng',
-		'mov'=>'video/quicktime',
-		'mp3'=>'audio/mpeg',
-		'mpg'=>'video/mpeg',
-		'ogg'=>'application/ogg',
-		'qt' =>'video/quicktime',
-		'ra' =>'audio/x-pn-realaudio',
-		'ram'=>'audio/x-pn-realaudio',
-		'rm' =>'audio/x-pn-realaudio',
-		'swf'=>'application/x-shockwave-flash',
-		'wav'=>'audio/x-wav',
-		'wmv'=>'video/x-ms-wmv',
-		'svg'=>'image/svg+xml',
-		'mp4' => 'application/mp4',
-
-		// Documents varies
-		'ai' =>'application/illustrator',
-		'abw' =>'application/abiword',
-		'bin' => 'application/octet-stream', # le tout-venant
-		'blend' => 'application/x-blender',
-		'bz2'=>'application/x-bzip2',
-		'c'  =>'text/x-csrc',
-		'css'=>'text/css',
-		'deb'=>'application/x-debian-package',
-		'doc'=>'application/msword',
-		'djvu'=>'image/vnd.djvu',
-		'dvi'=>'application/x-dvi',
-		'eps'=>'application/postscript',
-		'gz' =>'application/x-gzip',
-		'h'  =>'text/x-chdr',
-		'html'=>'text/html',
-		'pas'=>'text/x-pascal',
-		'pdf'=>'application/pdf',
-		'pgn' =>'application/x-chess-pgn',
-		'ppt'=>'application/vnd.ms-powerpoint',
-		'ps' =>'application/postscript',
-		'rpm'=>'application/x-redhat-package-manager',
-		'rtf'=>'application/rtf',
-		'sdd'=>'application/vnd.stardivision.impress',
-		'sdw'=>'application/vnd.stardivision.writer',
-		'sit'=>'application/x-stuffit',
-		'sxc'=>'application/vnd.sun.xml.calc',
-		'sxi'=>'application/vnd.sun.xml.impress',
-		'sxw'=>'application/vnd.sun.xml.writer',
-		'tex'=>'text/x-tex',
-		'tgz'=>'application/x-gtar',
-		'torrent' => 'application/x-bittorrent',
-		'ttf'=>'application/x-font-ttf',
-		'txt'=>'text/plain',
-		'xcf'=>'application/x-xcf',
-		'xls'=>'application/vnd.ms-excel',
-		'xml'=>'application/xml',
-		'zip'=>'application/zip',
-
-		// open document format
-		'odt' => 'application/vnd.oasis.opendocument.text',
-		'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
-		'odp' => 'application/vnd.oasis.opendocument.presentation',
-		'odg' => 'application/vnd.oasis.opendocument.graphics',
-		'odc' => 'application/vnd.oasis.opendocument.chart',
-		'odf' => 'application/vnd.oasis.opendocument.formula',
-		'odb' => 'application/vnd.oasis.opendocument.database',
-		'odi' => 'application/vnd.oasis.opendocument.image',
-		'odm' => 'application/vnd.oasis.opendocument.text-master',
-		'ott' => 'application/vnd.oasis.opendocument.text-template',
-		'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
-		'otp' => 'application/vnd.oasis.opendocument.presentation-template',
-		'otg' => 'application/vnd.oasis.opendocument.graphics-template'
-		
-	);
-
-
-	$mime_alias = array (
-		'audio/x-mpeg' => 'audio/mpeg',
-		'application/x-ogg' => 'application/ogg',
-		'video/mp4' => 'application/mp4',
-		'video/flv' => 'video/x-flv'
-	);
-
-?>
diff --git a/ecrire/maj/vieille_base/13000/auxiliaires.php b/ecrire/maj/vieille_base/13000/auxiliaires.php
deleted file mode 100644
index d5c6a03e2e..0000000000
--- a/ecrire/maj/vieille_base/13000/auxiliaires.php
+++ /dev/null
@@ -1,331 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2008                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-// http://doc.spip.org/@base_auxiliaires
-function base_auxiliaires_13000(&$tables_auxiliaires){
-$spip_petitions = array(
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"email_unique"	=> "CHAR (3) DEFAULT '' NOT NULL",
-		"site_obli"	=> "CHAR (3) DEFAULT '' NOT NULL",
-		"site_unique"	=> "CHAR (3) DEFAULT '' NOT NULL",
-		"message"	=> "CHAR (3) DEFAULT '' NOT NULL",
-		"texte"	=> "LONGTEXT DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_petitions_key = array(
-		"PRIMARY KEY"	=> "id_article");
-
-$spip_visites = array(
-		"date"	=> "DATE NOT NULL",
-		"visites"	=> "int UNSIGNED DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_key = array(
-		"PRIMARY KEY"	=> "date");
-
-$spip_visites_articles = array(
-		"date"	=> "DATE NOT NULL",
-		"id_article"	=> "int UNSIGNED NOT NULL",
-		"visites"	=> "int UNSIGNED DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_articles_key = array(
-		"PRIMARY KEY"	=> "date, id_article");
-
-$spip_resultats = array(
- 		"recherche"	=> "char(16) not null default ''",
-		"id"	=> "INT UNSIGNED NOT NULL",
- 		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP" );
-
-$spip_resultats_key = array(
-// pas de cle ni index, ca fait des insertions plus rapides et les requetes jointes utilisees en recheche ne sont pas plus lentes ...
-);
-
-$spip_referers = array(
-		"referer_md5"	=> "bigint UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255)",
-		"visites"	=> "int UNSIGNED NOT NULL",
-		"visites_jour"	=> "int UNSIGNED NOT NULL",
-		"visites_veille"=> "int UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_key = array(
-		"PRIMARY KEY"	=> "referer_md5");
-
-$spip_referers_articles = array(
-		"id_article"	=> "int UNSIGNED NOT NULL",
-		"referer_md5"	=> "bigint UNSIGNED NOT NULL",
-		"referer"	=> "VARCHAR (255) DEFAULT '' NOT NULL",
-		"visites"	=> "int UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, referer_md5",
-		"KEY referer_md5"	=> "referer_md5");
-
-$spip_auteurs_articles = array(
-		"id_auteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_articles_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_article",
-		"KEY id_article"	=> "id_article");
-
-$spip_auteurs_rubriques = array(
-		"id_auteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_rubrique",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_auteurs_messages = array(
-		"id_auteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_message"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"vu"		=> "CHAR (3)");
-
-$spip_auteurs_messages_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_message",
-		"KEY id_message"	=> "id_message");
-
-$spip_documents_liens = array(
-		"id_document"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_objet"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"objet"	=> "VARCHAR (25) DEFAULT '' NOT NULL",
-		"vu"	=> "ENUM('non', 'oui') DEFAULT 'non' NOT NULL");
-
-$spip_documents_liens_key = array(
-		"PRIMARY KEY"		=> "id_document,id_objet,objet",
-		"KEY id_document"	=> "id_document");
-
-/*
-$spip_documents_articles = array(
-		"id_document"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"vu"	=> "ENUM('non', 'oui') DEFAULT 'non' NOT NULL");
-
-$spip_documents_articles_key = array(
-		"PRIMARY KEY"		=> "id_article, id_document",
-		"KEY id_document"	=> "id_document");
-
-$spip_documents_rubriques = array(
-		"id_document"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"vu"	=> "ENUM('non', 'oui') DEFAULT 'non' NOT NULL");
-
-$spip_documents_rubriques_key = array(
-		"PRIMARY KEY"		=> "id_rubrique, id_document",
-		"KEY id_document"	=> "id_document");
-
-$spip_documents_breves = array(
-		"id_document"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"vu"	=> "ENUM('non', 'oui') DEFAULT 'non' NOT NULL");
-
-$spip_documents_breves_key = array(
-		"PRIMARY KEY"		=> "id_breve, id_document",
-		"KEY id_document"	=> "id_document");
-
-$spip_documents_forum = array(
-		"id_document"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_forum"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"vu"	=> "ENUM('non', 'oui') DEFAULT 'non' NOT NULL");
-
-$spip_documents_forum_key = array(
-		"PRIMARY KEY"		=> "id_forum, id_document",
-		"KEY id_document"	=> "id_document");
-*/
-
-$spip_mots_articles = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_breves = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_rubriques = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_syndic = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_forum = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_forum"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_documents = array(
-		"id_mot"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_document"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_mots_documents_key = array(
-		"PRIMARY KEY"	=> "id_document, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_meta = array(
-		"nom"	=> "VARCHAR (255) NOT NULL",
-		"valeur"	=> "text DEFAULT ''",
-		"impt"	=> "ENUM('non', 'oui') DEFAULT 'oui' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_meta_key = array(
-		"PRIMARY KEY"	=> "nom");
-
-$spip_versions = array (
-		"id_article"	=> "bigint(21) NOT NULL",
-		"id_version"	=> "bigint(21) DEFAULT 0 NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"id_auteur"	=> "VARCHAR(23) DEFAULT '' NOT NULL", # stocke aussi IP(v6)
-		"titre_version"	=> "text DEFAULT '' NOT NULL",
-		"permanent"	=> "char(3)",
-		"champs"	=> "text");
-
-$spip_versions_key = array (
-		"PRIMARY KEY"	=> "id_article, id_version");
-
-$spip_versions_fragments = array(
-		"id_fragment"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_min"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_max"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) NOT NULL",
-		"compress"	=> "tinyint NOT NULL",
-		"fragment"	=> "longblob"  # ici c'est VRAIMENT un blob (on y stocke du gzip)
-	);
-
-$spip_versions_fragments_key = array(
-	     "PRIMARY KEY"	=> "id_article, id_fragment, version_min");
-
-
-$spip_urls = array(
-	"url"			=> "VARCHAR(255) NOT NULL",
-	// la table cible
-	"type"			=> "varchar(15) DEFAULT 'article' NOT NULL",
-	// l'id dans la table
-	"id_objet"		=> "bigint(21) NOT NULL",
-	// pour connaitre la plus recente. 
-	// ATTENTION, pas on update CURRENT_TIMESTAMP implicite
-	// et pas le nom maj, surinterprete par inc/import_1_3
-	"date"			=> "DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL");
-
-$spip_urls_key = array(
-	"PRIMARY KEY"		=> "url",
-	"KEY type"		=> "type, id_objet");
-
-$tables_auxiliaires['spip_petitions'] = array(
-	'field' => &$spip_petitions,
-	'key' => &$spip_petitions_key
-);
-$tables_auxiliaires['spip_visites'] = array(
-	'field' => &$spip_visites,
-	'key' => &$spip_visites_key);
-$tables_auxiliaires['spip_visites_articles'] = array(
-	'field' => &$spip_visites_articles,
-	'key' => &$spip_visites_articles_key);
-$tables_auxiliaires['spip_referers'] = array(
-	'field' => &$spip_referers,
-	'key' => &$spip_referers_key);
-$tables_auxiliaires['spip_referers_articles'] = array(
-	'field' => &$spip_referers_articles,
-	'key' => &$spip_referers_articles_key);
-$tables_auxiliaires['spip_auteurs_articles'] = array(
-	'field' => &$spip_auteurs_articles,
-	'key' => &$spip_auteurs_articles_key);
-$tables_auxiliaires['spip_auteurs_rubriques'] = array(
-	'field' => &$spip_auteurs_rubriques,
-	'key' => &$spip_auteurs_rubriques_key);
-$tables_auxiliaires['spip_auteurs_messages'] = array(
-	'field' => &$spip_auteurs_messages,
-	'key' => &$spip_auteurs_messages_key);
-$tables_auxiliaires['spip_documents_liens'] = array(
-	'field' => &$spip_documents_liens,
-	'key' => &$spip_documents_liens_key);
-/*
-$tables_auxiliaires['spip_documents_articles'] = array(
-	'field' => &$spip_documents_articles,
-	'key' => &$spip_documents_articles_key);
-$tables_auxiliaires['spip_documents_rubriques'] = array(
-	'field' => &$spip_documents_rubriques,
-	'key' => &$spip_documents_rubriques_key);
-$tables_auxiliaires['spip_documents_breves'] = array(
-	'field' => &$spip_documents_breves,
-	'key' => &$spip_documents_breves_key);
-$tables_auxiliaires['spip_documents_forum'] = array(
-	'field' => &$spip_documents_forum,
-	'key' => &$spip_documents_forum_key);
-*/
-$tables_auxiliaires['spip_mots_articles'] = array(
-	'field' => &$spip_mots_articles,
-	'key' => &$spip_mots_articles_key);
-$tables_auxiliaires['spip_mots_breves'] = array(
-	'field' => &$spip_mots_breves,
-	'key' => &$spip_mots_breves_key);
-$tables_auxiliaires['spip_mots_rubriques'] = array(
-	'field' => &$spip_mots_rubriques,
-	'key' => &$spip_mots_rubriques_key);
-$tables_auxiliaires['spip_mots_syndic'] = array(
-	'field' => &$spip_mots_syndic,
-	'key' => &$spip_mots_syndic_key);
-$tables_auxiliaires['spip_mots_forum'] = array(
-	'field' => &$spip_mots_forum,
-	'key' => &$spip_mots_forum_key);
-$tables_auxiliaires['spip_mots_documents'] = array(
-	'field' => &$spip_mots_documents,
-	'key' => &$spip_mots_documents_key);
-$tables_auxiliaires['spip_meta'] = array(
-	'field' => &$spip_meta,
-	'key' => &$spip_meta_key);
-$tables_auxiliaires['spip_resultats'] = array(
-	'field' => &$spip_resultats,
-	'key' => &$spip_resultats_key);
-$tables_auxiliaires['spip_versions'] = array(
-	'field' => &$spip_versions,
-	'key' => &$spip_versions_key);
-$tables_auxiliaires['spip_versions_fragments'] = array(
-	'field' => &$spip_versions_fragments,
-	'key' => &$spip_versions_fragments_key);
-$tables_auxiliaires['spip_urls'] = array(
-	'field' => &$spip_urls,
-	'key' => &$spip_urls_key);
-	
-	$tables_auxiliaires = pipeline('declarer_tables_auxiliaires',$tables_auxiliaires);
-}
-
-global $tables_auxiliaires;
-base_auxiliaires_13000($tables_auxiliaires);
-?>
diff --git a/ecrire/maj/vieille_base/13000/create.php b/ecrire/maj/vieille_base/13000/create.php
deleted file mode 100644
index 6eeeeb9165..0000000000
--- a/ecrire/maj/vieille_base/13000/create.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2007                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-include_spip('maj/vieille_base/13000/serial');
-include_spip('maj/vieille_base/13000/auxiliaires');
-include_spip('maj/vieille_base/13000/typedoc');
-include_spip('base/create');
-
-// http://doc.spip.org/@creer_base
-function maj_vieille_base_13000_create($serveur='') {
-	global $tables_principales, $tables_auxiliaires;
-
-	// Note: les mises a jour reexecutent ce code pour s'assurer
-	// de la conformite de la base
-	// pas de panique sur  "already exists" et "duplicate entry" donc.
-
-	foreach($tables_principales as $k => $v)
-		creer_ou_upgrader_table($k,$v,true,false,$serveur);
-
-	foreach($tables_auxiliaires as $k => $v)
-		creer_ou_upgrader_table($k,$v,false,false,$serveur);
-}
-
-
-?>
diff --git a/ecrire/maj/vieille_base/13000/serial.php b/ecrire/maj/vieille_base/13000/serial.php
deleted file mode 100644
index 4133a65740..0000000000
--- a/ecrire/maj/vieille_base/13000/serial.php
+++ /dev/null
@@ -1,393 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2008                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-// http://doc.spip.org/@base_serial
-function base_serial_13000(&$tables_principales){
-$spip_articles = array(
-		"id_article"	=> "bigint(21) NOT NULL",
-		"surtitre"	=> "text DEFAULT '' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"soustitre"	=> "text DEFAULT '' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"chapo"	=> "mediumtext DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"ps"	=> "mediumtext DEFAULT '' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"date_redac"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"visites"	=> "integer DEFAULT '0' NOT NULL",
-		"referers"	=> "integer DEFAULT '0' NOT NULL",
-		"popularite"	=> "DOUBLE DEFAULT '0' NOT NULL",
-		"accepter_forum"	=> "CHAR(3) DEFAULT '' NOT NULL",
-		"date_modif"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"		=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"id_trad"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"extra"		=> "longtext NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"nom_site"	=> "tinytext DEFAULT '' NOT NULL",
-		"url_site"	=> "VARCHAR(255) DEFAULT '' NOT NULL",
-#		"url_propre" => "VARCHAR(255) DEFAULT '' NOT NULL"
-);
-
-$spip_articles_key = array(
-		"PRIMARY KEY"		=> "id_article",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY id_trad"		=> "id_trad",
-		"KEY lang"		=> "lang",
-		"KEY statut"		=> "statut, date",
-#		"KEY url_propre"	=> "url_propre"
-);
-$spip_articles_join = array(
-		"id_article"=>"id_article",
-		"id_rubrique"=>"id_rubrique");
-
-$spip_auteurs = array(
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"nom"	=> "text DEFAULT '' NOT NULL",
-		"bio"	=> "text DEFAULT '' NOT NULL",
-		"email"	=> "tinytext DEFAULT '' NOT NULL",
-		"nom_site"	=> "tinytext DEFAULT '' NOT NULL",
-		"url_site"	=> "text DEFAULT '' NOT NULL",
-		"login"	=> "VARCHAR(255) BINARY",
-		"pass"	=> "tinytext DEFAULT '' NOT NULL",
-		"low_sec"	=> "tinytext DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(255)  DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"pgp"	=> "TEXT DEFAULT '' NOT NULL",
-		"htpass"	=> "tinytext DEFAULT '' NOT NULL",
-		"en_ligne"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"imessage"	=> "VARCHAR(3)",
-		"messagerie"	=> "VARCHAR(3)",
-		"alea_actuel"	=> "tinytext",
-		"alea_futur"	=> "tinytext",
-		"prefs"	=> "tinytext",
-		"cookie_oubli"	=> "tinytext",
-		"source"	=> "VARCHAR(10) DEFAULT 'spip' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-#		"url_propre" => "VARCHAR(255)",
-		"extra"	=> "longtext NULL");
-
-$spip_auteurs_key = array(
-		"PRIMARY KEY"	=> "id_auteur",
-		"KEY login"	=> "login",
-		"KEY statut"	=> "statut",
-		"KEY en_ligne"	=> "en_ligne",
-#		"KEY url_propre"	=> "url_propre"
-);
-$spip_auteurs_join = array(
-		"id_auteur"=>"id_auteur",
-		"login"=>"login");
-
-
-$spip_breves = array(
-		"id_breve"	=> "bigint(21) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"lien_titre"	=> "text DEFAULT '' NOT NULL",
-		"lien_url"	=> "text DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(6)  DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"maj"	=> "TIMESTAMP",
-		"extra"	=> "longtext NULL",
-#		"url_propre" => "VARCHAR(255) DEFAULT '' NOT NULL"
-);
-
-$spip_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve",
-		"KEY id_rubrique"	=> "id_rubrique",
-#		"KEY url_propre"	=> "url_propre"
-);
-$spip_breves_join = array(
-		"id_breve"=>"id_breve",
-		"id_rubrique"=>"id_rubrique");
-
-$spip_messages = array(
-		"id_message"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"type"	=> "varchar(6) DEFAULT '' NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_fin"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"rv"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(6)  DEFAULT '0' NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_messages_key = array(
-		"PRIMARY KEY"	=> "id_message",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_mots = array(
-		"id_mot"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"id_groupe"	=> "bigint(21) DEFAULT 0 NOT NULL",
-		"type"	=> "text DEFAULT '' NOT NULL",
-		"extra"	=> "longtext NULL",
-#		"url_propre" => "VARCHAR(255) DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_mots_key = array(
-		"PRIMARY KEY"	=> "id_mot",
-#		"KEY url_propre"	=> "url_propre"
-);
-
-$spip_groupes_mots = array(
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"unseul"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"obligatoire"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"tables_liees" => "text DEFAULT '' NOT NULL",
-		# suppression des champs a faire dans la maj
-		#"articles"	=> "varchar(3) DEFAULT '' NOT NULL",
-		#"breves"	=> "varchar(3) DEFAULT '' NOT NULL",
-		#"rubriques"	=> "varchar(3) DEFAULT '' NOT NULL",
-		#"syndic"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"minirezo"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"comite"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"forum"	=> "varchar(3) DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_groupes_mots_key = array(
-		"PRIMARY KEY"	=> "id_groupe");
-
-$spip_rubriques = array(
-		"id_rubrique"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "longtext DEFAULT '' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"id_import"	=> "bigint DEFAULT '0'",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"extra"	=> "longtext NULL",
-#		"url_propre" => "VARCHAR(255) DEFAULT '' NOT NULL",
-		"statut_tmp"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"date_tmp"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL"
-		);
-
-$spip_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique",
-		"KEY lang"	=> "lang",
-		"KEY id_parent"	=> "id_parent",
-#		"KEY url_propre"	=> "url_propre"
-);
-
-$spip_documents = array(
-		"id_document"	=> "bigint(21) NOT NULL",
-		"id_vignette"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"extension"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"fichier"	=> "varchar(255) DEFAULT '' NOT NULL",
-		"taille"	=> "integer",
-		"largeur"	=> "integer",
-		"hauteur"	=> "integer",
-		"mode"	=> "ENUM('vignette', 'image', 'document') DEFAULT 'document' NOT NULL",
-		"distant"	=> "VARCHAR(3) DEFAULT 'non'",
-		"maj"	=> "TIMESTAMP");
-
-$spip_documents_key = array(
-		"PRIMARY KEY"	=> "id_document",
-		"KEY id_vignette"	=> "id_vignette",
-		"KEY mode"	=> "mode",
-		"KEY extension"	=> "extension");
-$spip_documents_join = array(
-		"id_document"=>"id_document",
-		"extension"=>"extension");
-
-$spip_types_documents = array(
-		"extension"	=> "varchar(10) DEFAULT '' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"mime_type"	=> "varchar(100) DEFAULT '' NOT NULL",
-		"inclus"	=> "ENUM('non', 'image', 'embed') NOT NULL DEFAULT 'non'",
-		"upload"	=> "ENUM('oui', 'non') NOT NULL DEFAULT 'oui'",
-		"maj"	=> "TIMESTAMP");
-
-$spip_types_documents_key = array(
-		"PRIMARY KEY"	=> "extension",
-		"KEY inclus"	=> "inclus");
-
-$spip_syndic = array(
-		"id_syndic"	=> "bigint(21) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"nom_site"	=> "text DEFAULT '' NOT NULL",
-		"url_site"	=> "text DEFAULT '' NOT NULL",
-		"url_syndic"	=> "text DEFAULT '' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-#		"url_propre"	=> "VARCHAR(255) DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"syndication"	=> "VARCHAR(3) DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_syndic"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_index"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"extra"			=> "longtext NULL",
-		"moderation"	=> "VARCHAR(3) DEFAULT 'non'",
-		"miroir"	=> "VARCHAR(3) DEFAULT 'non'",
-		"oubli"	=> "VARCHAR(3) DEFAULT 'non'",
-		"resume"	=> "VARCHAR(3) DEFAULT 'oui'"
-);
-
-$spip_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY statut"	=> "statut, date_syndic",
-#		"KEY url_propre"	=> "url_propre"
-);
-$spip_syndic_join = array(
-		"id_syndic"=>"id_syndic",
-		"id_rubrique"=>"id_rubrique");
-		
-$spip_syndic_articles = array(
-		"id_syndic_article"	=> "bigint(21) NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"url"	=> "VARCHAR(255) DEFAULT '' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lesauteurs"	=> "text DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"descriptif"	=> "text DEFAULT '' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"url_source" => "TINYTEXT DEFAULT '' NOT NULL",
-		"source" => "TINYTEXT DEFAULT '' NOT NULL",
-		"tags" => "TEXT DEFAULT '' NOT NULL");
-
-$spip_syndic_articles_key = array(
-		"PRIMARY KEY"	=> "id_syndic_article",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY statut"	=> "statut",
-		"KEY url"	=> "url");
-$spip_syndic_articles_join = array(
-		"id_syndic_article"=>"id_syndic_article",
-		"id_syndic"=>"id_syndic");
-
-$spip_forum = array(
-		"id_forum"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_thread"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_thread"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text DEFAULT '' NOT NULL",
-		"texte"	=> "mediumtext DEFAULT '' NOT NULL",
-		"auteur"	=> "text DEFAULT '' NOT NULL",
-		"email_auteur"	=> "text DEFAULT '' NOT NULL",
-		"nom_site"	=> "text DEFAULT '' NOT NULL",
-		"url_site"	=> "text DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(8) DEFAULT '0' NOT NULL",
-		"ip"	=> "varchar(16) DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"id_auteur"	=> "bigint DEFAULT '0' NOT NULL",
-		"id_message"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum",
-		"KEY id_auteur"	=> "id_auteur",
-		"KEY id_parent"	=> "id_parent",
-		"KEY id_thread"	=> "id_thread",
-		"KEY optimal" => "statut,id_parent,id_article,date_heure,id_breve,id_syndic,id_rubrique");
-
-$spip_forum_join = array(
-		"id_forum"=>"id_forum",
-		"id_parent"=>"id_parent",
-		"id_article"=>"id_article",
-		"id_breve"=>"id_breve",
-		"id_message"=>"id_message",
-		"id_syndic"=>"id_syndic",
-		"id_rubrique"=>"id_rubrique");
-
-$spip_signatures = array(
-		"id_signature"	=> "bigint(21) NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_time"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"nom_email"	=> "text DEFAULT '' NOT NULL",
-		"ad_email"	=> "text DEFAULT '' NOT NULL",
-		"nom_site"	=> "text DEFAULT '' NOT NULL",
-		"url_site"	=> "text DEFAULT '' NOT NULL",
-		"message"	=> "mediumtext DEFAULT '' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_signatures_key = array(
-		"PRIMARY KEY"	=> "id_signature",
-		"KEY id_article"	=> "id_article",
-		"KEY statut" => "statut");
-$spip_signatures_join = array(
-		"id_signature"=>"id_signature",
-		"id_article"=>"id_article");
-
-/// Attention: mes_fonctions peut avoir deja defini cette variable
-/// il faut donc rajouter, mais pas reinitialiser
-
-$tables_principales['spip_articles'] =
-	array('field' => &$spip_articles, 'key' => &$spip_articles_key, 'join' => &$spip_articles_join);
-$tables_principales['spip_auteurs']  =
-	array('field' => &$spip_auteurs, 'key' => &$spip_auteurs_key,'join' => &$spip_auteurs_join);
-$tables_principales['spip_breves']   =
-	array('field' => &$spip_breves, 'key' => &$spip_breves_key,'join' => &$spip_breves_join);
-$tables_principales['spip_messages'] =
-	array('field' => &$spip_messages, 'key' => &$spip_messages_key);
-$tables_principales['spip_mots']     =
-	array('field' => &$spip_mots, 'key' => &$spip_mots_key);
-$tables_principales['spip_groupes_mots'] =
-	array('field' => &$spip_groupes_mots, 'key' => &$spip_groupes_mots_key);
-$tables_principales['spip_rubriques'] =
-	array('field' => &$spip_rubriques, 'key' => &$spip_rubriques_key);
-$tables_principales['spip_documents'] =
-	array('field' => &$spip_documents,  'key' => &$spip_documents_key, 'join' => &$spip_documents_join);
-$tables_principales['spip_types_documents']	=
-	array('field' => &$spip_types_documents, 'key' => &$spip_types_documents_key);
-$tables_principales['spip_syndic'] =
-	array('field' => &$spip_syndic, 'key' => &$spip_syndic_key, 'join' => &$spip_syndic_join);
-$tables_principales['spip_syndic_articles']	=
-	array('field' => &$spip_syndic_articles, 'key' => &$spip_syndic_articles_key, 'join' => &$spip_syndic_articles_join);
-$tables_principales['spip_forum'] =
-	array('field' => &$spip_forum,	'key' => &$spip_forum_key, 'join' => &$spip_forum_join);
-$tables_principales['spip_signatures'] =
-	array('field' => &$spip_signatures, 'key' => &$spip_signatures_key, 'join' => &$spip_signatures_join);
-	
-	$tables_principales = pipeline('declarer_tables_principales',$tables_principales);
-}
-
-global $tables_principales;
-base_serial_13000($tables_principales);
-
-?>
diff --git a/ecrire/maj/vieille_base/13000/typedoc.php b/ecrire/maj/vieille_base/13000/typedoc.php
deleted file mode 100644
index 7cf2a7ab99..0000000000
--- a/ecrire/maj/vieille_base/13000/typedoc.php
+++ /dev/null
@@ -1,224 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2008                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-//
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-global $tables_images, $tables_sequences, $tables_documents, $tables_mime, $mime_alias;
-
-$tables_images = array(
-		       // Images reconnues par PHP
-		       'jpg' => 'JPEG', 
-		       'png' => 'PNG', 
-		       'gif' =>'GIF',
-
-		       // Autres images (peuvent utiliser le tag <img>)
-		       'bmp' => 'BMP',
-		       'tif' => 'TIFF'
-		       );
-
-// Multimedia (peuvent utiliser le tag <embed>)
-
-$tables_sequences = array(
-			  'aiff' => 'AIFF',
-			  'asf' => 'Windows Media',
-			  'avi' => 'AVI',
-			  'flv' => 'Flash Video',
-			  'mid' => 'Midi',
-			  'mng' => 'MNG',
-			  'mka' => 'Matroska Audio',
-			  'mkv' => 'Matroska Video',
-			  'mov' => 'QuickTime',
-			  'mp3' => 'MP3',
-			  'mp4' => 'MPEG4',
-			  'mpg' => 'MPEG',
-			  'ogg' => 'Ogg',
-			  'qt' => 'QuickTime',
-			  'ra' => 'RealAudio',
-			  'ram' => 'RealAudio',
-			  'rm' => 'RealAudio',
-			  'svg' => 'Scalable Vector Graphics',
-			  'swf' => 'Flash',
-			  'wav' => 'WAV',
-			  'wmv' => 'Windows Media',
-			  '3gp' => '3rd Generation Partnership Project'
-			  );
-
-// Documents varies
-$tables_documents = array(
-			  'abw' => 'Abiword',
-			  'ai' => 'Adobe Illustrator',
-			  'bz2' => 'BZip',
-			  'bin' => 'Binary Data',
-			  'blend' => 'Blender',
-			  'c' => 'C source',
-			  'cls' => 'LaTeX Class',
-			  'css' => 'Cascading Style Sheet',
-			  'csv' => 'Comma Separated Values',
-			  'deb' => 'Debian',
-			  'doc' => 'Word',
-			  'djvu' => 'DjVu',
-			  'dvi' => 'LaTeX DVI',
-			  'eps' => 'PostScript',
-			  'gz' => 'GZ',
-			  'h' => 'C header',
-			  'html' => 'HTML',
-			  'kml' => 'Keyhole Markup Language',
-			  'kmz' => 'Google Earth Placemark File',
-			  'pas' => 'Pascal',
-			  'pdf' => 'PDF',
-			  'pgn' => 'Portable Game Notation',
-			  'ppt' => 'PowerPoint',
-			  'ps' => 'PostScript',
-			  'psd' => 'Photoshop',
-			  'rpm' => 'RedHat/Mandrake/SuSE',
-			  'rtf' => 'RTF',
-			  'sdd' => 'StarOffice',
-			  'sdw' => 'StarOffice',
-			  'sit' => 'Stuffit',
-			  'sty' => 'LaTeX Style Sheet',
-			  'sxc' => 'OpenOffice.org Calc',
-			  'sxi' => 'OpenOffice.org Impress',
-			  'sxw' => 'OpenOffice.org',
-			  'tex' => 'LaTeX',
-			  'tgz' => 'TGZ',
-			  'torrent' => 'BitTorrent',
-			  'ttf' => 'TTF Font',
-			  'txt' => 'texte',
-			  'xcf' => 'GIMP multi-layer',
-			  'xls' => 'Excel',
-			  'xml' => 'XML',
-			  'zip' => 'Zip',
-
-			// open document format
-			'odt' => 'opendocument text',
-			'ods' => 'opendocument spreadsheet',
-			'odp' => 'opendocument presentation',
-			'odg' => 'opendocument graphics',
-			'odc' => 'opendocument chart',
-			'odf' => 'opendocument formula',
-			'odb' => 'opendocument database',
-			'odi' => 'opendocument image',
-			'odm' => 'opendocument text-master',
-			'ott' => 'opendocument text-template',
-			'ots' => 'opendocument spreadsheet-template',
-			'otp' => 'opendocument presentation-template',
-			'otg' => 'opendocument graphics-template',
-		
-			  );
-
-$tables_mime = array(
-		// Images reconnues par PHP
-		'jpg'=>'image/jpeg',
-		'png'=>'image/png',
-		'gif'=>'image/gif',
-
-		// Autres images (peuvent utiliser le tag <img>)
-		'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
-		'tif'=>'image/tiff',
-
-		// Multimedia (peuvent utiliser le tag <embed>)
-		'aiff'=>'audio/x-aiff',
-		'asf'=>'video/x-ms-asf',
-		'avi'=>'video/x-msvideo',
-		'flv' => 'video/x-flv',
-		'mid'=>'audio/midi',
-		'mka' => 'audio/mka',
-		'mkv' => 'video/mkv',
-		'mng'=>'video/x-mng',
-		'mov'=>'video/quicktime',
-		'mp3'=>'audio/mpeg',
-		'mp4' => 'application/mp4',
-		'mpg'=>'video/mpeg',
-		'ogg'=>'application/ogg',
-		'qt' =>'video/quicktime',
-		'ra' =>'audio/x-pn-realaudio',
-		'ram'=>'audio/x-pn-realaudio',
-		'rm' =>'audio/x-pn-realaudio',
-		'svg'=>'image/svg+xml',
-		'swf'=>'application/x-shockwave-flash',
-		'wav'=>'audio/x-wav',
-		'wmv'=>'video/x-ms-wmv',
-		'3gp'=>'video/3gpp',
-
-		// Documents varies
-		'ai' =>'application/illustrator',
-		'abw' =>'application/abiword',
-		'bin' => 'application/octet-stream', # le tout-venant
-		'blend' => 'application/x-blender',
-		'bz2'=>'application/x-bzip2',
-		'c'  =>'text/x-csrc',
-		'css'=>'text/css',
-		'csv'=>'text/csv',
-		'deb'=>'application/x-debian-package',
-		'doc'=>'application/msword',
-		'djvu'=>'image/vnd.djvu',
-		'dvi'=>'application/x-dvi',
-		'eps'=>'application/postscript',
-		'gz' =>'application/x-gzip',
-		'h'  =>'text/x-chdr',
-		'html'=>'text/html',
-		'kml'=>'application/vnd.google-earth.kml+xml',
-		'kmz'=>'application/vnd.google-earth.kmz',
-		'pas'=>'text/x-pascal',
-		'pdf'=>'application/pdf',
-		'pgn' =>'application/x-chess-pgn',
-		'ppt'=>'application/vnd.ms-powerpoint',
-		'ps' =>'application/postscript',
-		'psd'=>'image/x-photoshop', // pas enregistre par IANA
-		'rpm'=>'application/x-redhat-package-manager',
-		'rtf'=>'application/rtf',
-		'sdd'=>'application/vnd.stardivision.impress',
-		'sdw'=>'application/vnd.stardivision.writer',
-		'sit'=>'application/x-stuffit',
-		'sxc'=>'application/vnd.sun.xml.calc',
-		'sxi'=>'application/vnd.sun.xml.impress',
-		'sxw'=>'application/vnd.sun.xml.writer',
-		'tex'=>'text/x-tex',
-		'tgz'=>'application/x-gtar',
-		'torrent' => 'application/x-bittorrent',
-		'ttf'=>'application/x-font-ttf',
-		'txt'=>'text/plain',
-		'xcf'=>'application/x-xcf',
-		'xls'=>'application/vnd.ms-excel',
-		'xml'=>'application/xml',
-		'zip'=>'application/zip',
-
-		// open document format
-		'odt' => 'application/vnd.oasis.opendocument.text',
-		'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
-		'odp' => 'application/vnd.oasis.opendocument.presentation',
-		'odg' => 'application/vnd.oasis.opendocument.graphics',
-		'odc' => 'application/vnd.oasis.opendocument.chart',
-		'odf' => 'application/vnd.oasis.opendocument.formula',
-		'odb' => 'application/vnd.oasis.opendocument.database',
-		'odi' => 'application/vnd.oasis.opendocument.image',
-		'odm' => 'application/vnd.oasis.opendocument.text-master',
-		'ott' => 'application/vnd.oasis.opendocument.text-template',
-		'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
-		'otp' => 'application/vnd.oasis.opendocument.presentation-template',
-		'otg' => 'application/vnd.oasis.opendocument.graphics-template',
-		'cls'=>'text/x-tex',
-		'sty'=>'text/x-tex',
-	);
-
-
-	$mime_alias = array (
-		'audio/x-mpeg' => 'audio/mpeg',
-		'application/x-ogg' => 'application/ogg',
-		'video/mp4' => 'application/mp4',
-		'video/flv' => 'video/x-flv',
-		'audio/3gpp' => 'video/3gpp'
-	);
-
-?>
diff --git a/ecrire/maj/vieille_base/1813/create.php b/ecrire/maj/vieille_base/1813/create.php
deleted file mode 100644
index a035e27543..0000000000
--- a/ecrire/maj/vieille_base/1813/create.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2005                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-include_spip('maj/vieille_base/1813/inc_serialbase');
-include_spip('maj/vieille_base/1813/inc_auxbase');
-include_spip('maj/vieille_base/1813/inc_typebase');
-
-function maj_vieille_base_1813_create() {
-  global $tables_principales, $tables_auxiliaires, $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-	// ne pas revenir plusieurs fois (si, au contraire, il faut pouvoir
-	// le faire car certaines mises a jour le demandent explicitement)
-	# static $vu = false;
-	# if ($vu) return; else $vu = true;
-
-	foreach($tables_principales as $k => $v)
-		spip_create_vieille_table($k, $v['field'], $v['key'], true);
-
-	foreach($tables_auxiliaires as $k => $v)
-		spip_create_vieille_table($k, $v['field'], $v['key'], false);
-
-	foreach($tables_images as $k => $v)
-		spip_query("INSERT IGNORE spip_types_documents (extension, inclus, titre, id_type) VALUES ('$k', 'image', '" .
-			      (is_numeric($v) ?
-			       (strtoupper($k) . "', $v") :
-			       "$v', 0") .
-			      ")");
-
-	foreach($tables_sequences as $k => $v)
-		spip_query("INSERT IGNORE spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'embed')");
-
-	foreach($tables_documents as $k => $v)
-		spip_query("INSERT IGNORE spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'non')");
-
-	foreach ($tables_mime as $extension => $type_mime)
-	  spip_query("UPDATE spip_types_documents
-		SET mime_type='$type_mime' WHERE extension='$extension'");
-}
-
-
-?>
\ No newline at end of file
diff --git a/ecrire/maj/vieille_base/1813/inc_auxbase.php b/ecrire/maj/vieille_base/1813/inc_auxbase.php
deleted file mode 100644
index 13073bc7b3..0000000000
--- a/ecrire/maj/vieille_base/1813/inc_auxbase.php
+++ /dev/null
@@ -1,431 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2005                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-// Ce fichier ne sera execute qu'une fois
-if (defined("_ECRIRE_INC_AUXBASE")) return;
-define("_ECRIRE_INC_AUXBASE", "1");
-
-$spip_petitions = array(
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"email_unique"	=> "CHAR (3) NOT NULL",
-		"site_obli"	=> "CHAR (3) NOT NULL",
-		"site_unique"	=> "CHAR (3) NOT NULL",
-		"message"	=> "CHAR (3) NOT NULL",
-		"texte"	=> "LONGBLOB NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_petitions_key = array(
-		"PRIMARY KEY"	=> "id_article");
-
-$spip_visites_temp = array(
-		"ip"	=> "INT UNSIGNED NOT NULL",
-		"type"	=> "ENUM ('article', 'rubrique', 'breve', 'autre') NOT NULL",
-		"id_objet"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_temp_key = array(
-		"PRIMARY KEY"	=> "type, id_objet, ip");
-
-$spip_visites = array(
-		"date"	=> "DATE NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_key = array(
-		"PRIMARY KEY"	=> "date");
-
-$spip_visites_articles = array(
-		"date"	=> "DATE NOT NULL",
-		"id_article"	=> "INT UNSIGNED NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_articles_key = array(
-		"PRIMARY KEY"	=> "date, id_article");
-
-$spip_referers_temp = array(
-		"ip"	=> "INT UNSIGNED NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"type"	=> "ENUM ('article', 'rubrique', 'breve', 'autre') NOT NULL",
-		"id_objet"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_referers_temp_key = array(
-		"PRIMARY KEY"	=> "type, id_objet, referer_md5, ip");
-
-$spip_referers = array(
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"visites_jour"	=> "INT UNSIGNED NOT NULL",
-		"visites_veille"=> "INT UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_key = array(
-		"PRIMARY KEY"	=> "referer_md5");
-
-$spip_referers_articles = array(
-		"id_article"	=> "INT UNSIGNED NOT NULL",
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, referer_md5",
-		"KEY referer_md5"	=> "referer_md5");
-
-$spip_auteurs_articles = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_articles_key = array(
-		"KEY id_auteur"	=> "id_auteur",
-		"KEY id_article"	=> "id_article");
-
-$spip_auteurs_rubriques = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_rubriques_key = array(
-		"KEY id_auteur"	=> "id_auteur",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_auteurs_messages = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_message"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"vu"		=> "CHAR (3) NOT NULL");
-
-$spip_auteurs_messages_key = array(
-		"KEY id_auteur"	=> "id_auteur",
-		"KEY id_message"	=> "id_message");
-
-
-$spip_documents_articles = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_articles_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_article"	=> "id_article");
-
-$spip_documents_rubriques = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_rubriques_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_documents_breves = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_breves_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_breve"	=> "id_breve");
-
-$spip_mots_articles = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_articles_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_article"	=> "id_article");
-
-$spip_mots_breves = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_breves_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_breve"	=> "id_breve");
-
-$spip_mots_rubriques = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_rubriques_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_mots_syndic = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_syndic_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_syndic"	=> "id_syndic");
-
-$spip_mots_forum = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_forum"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_forum_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_forum"	=> "id_forum");
-
-$spip_meta = array(
-		"nom"	=> "VARCHAR (255) NOT NULL",
-		"valeur"	=> "VARCHAR (255) DEFAULT ''",
-		"maj"	=> "TIMESTAMP");
-
-$spip_meta_key = array(
-		"PRIMARY KEY"	=> "nom");
-
-$spip_index_articles = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_article"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_articles_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_article"	=> "id_article");
-
-$spip_index_auteurs = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_auteur"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_auteurs_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_index_breves = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_breve"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_breves_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_breve"	=> "id_breve");
-
-$spip_index_mots = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_mot"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_mots_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_index_rubriques = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_rubriques_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_index_syndic = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_syndic_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_syndic"	=> "id_syndic");
-
-$spip_index_signatures = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_signature"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_signatures_key = array(
-		"KEY `hash`"		=> "`hash`",
-		"KEY id_signature"	=> "id_signature");
-
-$spip_index_forum = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_forum"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_forum_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_forum"	=> "id_forum");
-
-$spip_index_dico = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"dico"		=> "VARCHAR (30) NOT NULL");
-
-$spip_index_dico_key = array(
-		"PRIMARY KEY"	=> "dico");
-
-$spip_versions = array (
-		"id_article"	=> "bigint(21) NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"titre_version"	=> "text DEFAULT '' NOT NULL",
-		"permanent"	=> "char(3) NOT NULL",
-		"champs"	=> "text NOT NULL");
-
-$spip_versions_key = array (
-		"PRIMARY KEY"	=> "id_article, id_version",
-		"KEY date"	=> "id_article, date",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_versions_fragments = array(
-		"id_fragment"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_min"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_max"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) NOT NULL",
-		"compress"	=> "tinyint NOT NULL",
-		"fragment"	=> "longblob NOT NULL");
-
-$spip_versions_fragments_key = array(
-	     "PRIMARY KEY"	=> "id_article, id_fragment, version_min");
-
-$spip_caches = array(
-		"fichier" => "char (64) NOT NULL",
-		"id" => "char (64) NOT NULL",
-		// i=par id, t=timer, x=suppression
-		"type" => "CHAR (1) DEFAULT 'i' NOT NULL",
-		"taille" => "integer DEFAULT '0' NOT NULL");
-$spip_caches_key = array(
-		"PRIMARY KEY"	=> "fichier, id",
-		"KEY fichier" => "fichier",
-		"KEY id" => "id");
-
-$spip_ortho_cache = array(
-	"lang" => "VARCHAR(10) NOT NULL",
-	"mot" => "VARCHAR(255) BINARY NOT NULL",
-	"ok" => "TINYINT NOT NULL",
-	"suggest" => "BLOB NOT NULL",
-	"maj" => "TIMESTAMP");
-$spip_ortho_cache_key = array(
-	"PRIMARY KEY" => "lang, mot",
-	"KEY maj" => "maj");
-
-$spip_ortho_dico = array(
-	"lang" => "VARCHAR(10) NOT NULL",
-	"mot" => "VARCHAR(255) BINARY NOT NULL",
-	"id_auteur" => "BIGINT UNSIGNED NOT NULL",
-	"maj" => "TIMESTAMP");
-$spip_ortho_dico_key = array(
-	"PRIMARY KEY" => "lang, mot",);
-
-
-global $tables_auxiliaires;
-
-$tables_auxiliaires  = 
-  array(
-	'spip_petitions' => array('field' => &$spip_petitions,
-			     'key' => &$spip_petitions_key),
-	'spip_visites_temp' => array('field' => &$spip_visites_temp,
-				'key' => &$spip_visites_temp_key),
-	'spip_visites' =>	array('field' => &$spip_visites,
-			      'key' => &$spip_visites_key),
-	'spip_visites_articles' => array('field' => &$spip_visites_articles,
-				    'key' => &$spip_visites_articles_key),
-	'spip_referers_temp' => array('field' => &$spip_referers_temp,
-				 'key' => &$spip_referers_temp_key),
-	'spip_referers' => array('field' => &$spip_referers,
-			    'key' => &$spip_referers_key),
-	'spip_referers_articles' => array('field' => &$spip_referers_articles,
-				     'key' => &$spip_referers_articles_key),
-	'spip_auteurs_articles' => array('field' => &$spip_auteurs_articles,
-				    'key' => &$spip_auteurs_articles_key),
-	'spip_auteurs_rubriques' => array('field' => &$spip_auteurs_rubriques,
-				     'key' => &$spip_auteurs_rubriques_key),
-	'spip_auteurs_messages' => array('field' => &$spip_auteurs_messages,
-				    'key' => &$spip_auteurs_messages_key),
-	'spip_documents_articles' => array('field' => &$spip_documents_articles,
-				      'key' => &$spip_documents_articles_key),
-	'spip_documents_rubriques' => array('field' => &$spip_documents_rubriques,
-				       'key' => &$spip_documents_rubriques_key),
-	'spip_documents_breves' => array('field' => &$spip_documents_breves,
-				    'key' => &$spip_documents_breves_key),
-	'spip_mots_articles' => array('field' => &$spip_mots_articles,
-				 'key' => &$spip_mots_articles_key),
-	'spip_mots_breves' => array('field' => &$spip_mots_breves,
-			       'key' => &$spip_mots_breves_key),
-	'spip_mots_rubriques' => array('field' => &$spip_mots_rubriques,
-				  'key' => &$spip_mots_rubriques_key),
-	'spip_mots_syndic' => array('field' => &$spip_mots_syndic,
-			       'key' => &$spip_mots_syndic_key),
-	'spip_mots_forum' => array('field' => &$spip_mots_forum,
-			      'key' => &$spip_mots_forum_key),
-	'spip_meta' => array('field' => &$spip_meta,
-			'key' => &$spip_meta_key),
-	'spip_index_articles' => array('field' => &$spip_index_articles,
-				  'key' => &$spip_index_articles_key),
-	'spip_index_auteurs' => array('field' => &$spip_index_auteurs,
-				 'key' => &$spip_index_auteurs_key),
-	'spip_index_breves' => array('field' => &$spip_index_breves,
-				'key' => &$spip_index_breves_key),
-	'spip_index_mots' => array('field' => &$spip_index_mots,
-			      'key' => &$spip_index_mots_key),
-	'spip_index_rubriques' => array('field' => &$spip_index_rubriques,
-				   'key' => &$spip_index_rubriques_key),
-	'spip_index_syndic' => array('field' => &$spip_index_syndic,
-				'key' => &$spip_index_syndic_key),
-	'spip_index_signatures' => array('field' => &$spip_index_signatures,
-				    'key' => &$spip_index_signatures_key),
-	'spip_index_forum' => array('field' => &$spip_index_forum,
-			       'key' => &$spip_index_forum_key),
-	'spip_index_dico' => array('field' => &$spip_index_dico,
-			      'key' => &$spip_index_dico_key),
-	'spip_versions'	=> array('field' => &$spip_versions,
-					 'key' => &$spip_versions_key),
-	'spip_versions_fragments'	=> array('field' => &$spip_versions_fragments,
-					 'key' => &$spip_versions_fragments_key),
-	'spip_caches'	=> array('field' => &$spip_caches,
-					 'key' => &$spip_caches_key),
-	'spip_ortho_cache'	=> array('field' => &$spip_ortho_cache,
-					 'key' => &$spip_ortho_cache_key),
-	'spip_ortho_dico'	=> array('field' => &$spip_ortho_dico,
-					 'key' => &$spip_ortho_dico_key)
-	);
-
-	
-//
-// tableau des tables de relations,
-// Ex: gestion du critere {id_mot} dans la boucle(ARTICLES)
-// transposee en tables_jointures pour le code moderne
-//
-global $tables_jointures;
-
-$tables_jointures['spip_articles']['id_mot']='mots_articles';
-$tables_jointures['spip_articles']['id_auteur']='auteurs_articles';
-$tables_jointures['spip_articles']['id_document']='documents_articles';
-
-$tables_jointures['spip_auteurs']['id_article']='auteurs_articles';
-
-$tables_jointures['spip_breves']['id_mot']='mots_breves';
-$tables_jointures['spip_breves']['id_document']='documents_breves';
-
-$tables_jointures['spip_documents']['id_article']='documents_articles';
-$tables_jointures['spip_documents']['id_rubrique']='documents_rubriques';
-$tables_jointures['spip_documents']['id_breve']='documents_breves';
-
-$tables_jointures['spip_forums']['id_mot']='mots_forum';
-
-$tables_jointures['spip_mots']['id_article']='mots_articles';
-$tables_jointures['spip_mots']['id_breve']='mots_breves';
-$tables_jointures['spip_mots']['id_forum']='mots_forum';
-$tables_jointures['spip_mots']['id_rubrique']='mots_rubriques';
-$tables_jointures['spip_mots']['id_syndic']='mots_syndic';
-
-$tables_jointures['spip_groupes_mots']['id_groupe']='mots';
-
-$tables_jointures['spip_rubriques']['id_mot']='mots_rubriques';
-$tables_jointures['spip_rubriques']['id_document']='documents_rubriques';
-
-$tables_jointures['spip_syndication']['id_mot']='mots_syndic';
-
-?>
\ No newline at end of file
diff --git a/ecrire/maj/vieille_base/1813/inc_serialbase.php b/ecrire/maj/vieille_base/1813/inc_serialbase.php
deleted file mode 100644
index 9f2fb4ff8f..0000000000
--- a/ecrire/maj/vieille_base/1813/inc_serialbase.php
+++ /dev/null
@@ -1,361 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2005                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-// Ce fichier ne sera execute qu'une fois
-if (defined("_ECRIRE_INC_SERIALBASE")) return;
-define("_ECRIRE_INC_SERIALBASE", "1");
-
-
-$spip_articles = array(
-		"id_article"	=> "bigint(21) NOT NULL",
-		"surtitre"	=> "text NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"soustitre"	=> "text NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"chapo"	=> "mediumtext NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"ps"	=> "mediumtext NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"date_redac"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"visites"	=> "INTEGER DEFAULT '0' NOT NULL",
-		"referers"	=> "INTEGER DEFAULT '0' NOT NULL",
-		"popularite"	=> "DOUBLE DEFAULT '0' NOT NULL",
-		"accepter_forum"	=> "CHAR(3) NOT NULL",
-		"auteur_modif"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_modif"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"		=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"id_trad"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"extra"		=> "longblob NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"nom_site"	=> "tinytext NOT NULL",
-		"url_site"	=> "VARCHAR(255) NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL");
-
-$spip_articles_key = array(
-		"PRIMARY KEY"		=> "id_article",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY id_trad"		=> "id_trad",
-		"KEY lang"			=> "lang",
-		"KEY statut"		=> "statut, date",
-		"KEY url_site"		=> "url_site",
-		"KEY date_modif"	=> "date_modif",
-		"KEY idx"			=> "idx",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_auteurs = array(
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"nom"	=> "text NOT NULL",
-		"bio"	=> "text NOT NULL",
-		"email"	=> "tinytext NOT NULL",
-		"nom_site"	=> "tinytext NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"login"	=> "VARCHAR(255) BINARY NOT NULL",
-		"pass"	=> "tinytext NOT NULL",
-		"low_sec"	=> "tinytext NOT NULL",
-		"statut"	=> "VARCHAR(255) NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"pgp"	=> "BLOB NOT NULL",
-		"htpass"	=> "tinyblob NOT NULL",
-		"en_ligne"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"imessage"	=> "VARCHAR(3) NOT NULL",
-		"messagerie"	=> "VARCHAR(3) NOT NULL",
-		"alea_actuel"	=> "tinytext NOT NULL",
-		"alea_futur"	=> "tinytext NOT NULL",
-		"prefs"	=> "tinytext NOT NULL",
-		"cookie_oubli"	=> "tinytext NOT NULL",
-		"source"	=> "VARCHAR(10) DEFAULT 'spip' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL");
-
-$spip_auteurs_key = array(
-		"PRIMARY KEY"	=> "id_auteur",
-		"KEY login"	=> "login",
-		"KEY statut"	=> "statut",
-		"KEY lang"	=> "lang",
-		"KEY idx"	=> "idx",
-		"KEY en_ligne"	=> "en_ligne");
-
-$spip_breves = array(
-		"id_breve"	=> "bigint(21) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"lien_titre"	=> "text NOT NULL",
-		"lien_url"	=> "text NOT NULL",
-		"statut"	=> "varchar(6) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"maj"	=> "TIMESTAMP",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL");
-
-$spip_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve",
-		"KEY idx"	=> "idx",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_messages = array(
-		"id_message"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"type"	=> "varchar(6) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_fin"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"rv"	=> "varchar(3) NOT NULL",
-		"statut"	=> "varchar(6) NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_messages_key = array(
-		"PRIMARY KEY"	=> "id_message",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_mots = array(
-		"id_mot"	=> "bigint(21) NOT NULL",
-		"type"	=> "VARCHAR(100) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"extra"	=> "longblob NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_mots_key = array(
-		"PRIMARY KEY"	=> "id_mot",
-		"KEY idx"	=> "idx",
-		"KEY type"	=> "type",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_groupes_mots = array(
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"unseul"	=> "varchar(3) NOT NULL",
-		"obligatoire"	=> "varchar(3) NOT NULL",
-		"articles"	=> "varchar(3) NOT NULL",
-		"breves"	=> "varchar(3) NOT NULL",
-		"rubriques"	=> "varchar(3) NOT NULL",
-		"syndic"	=> "varchar(3) NOT NULL",
-		"0minirezo"	=> "varchar(3) NOT NULL",
-		"1comite"	=> "varchar(3) NOT NULL",
-		"6forum"	=> "varchar(3) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_groupes_mots_key = array(
-		"PRIMARY KEY"	=> "id_groupe");
-
-$spip_rubriques = array(
-		"id_rubrique"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"id_import"	=> "BIGINT DEFAULT '0'",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"statut_tmp"	=> "VARCHAR(10) NOT NULL",
-		"date_tmp"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL"
-		);
-
-$spip_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique",
-		"KEY lang"	=> "lang",
-		"KEY idx"	=> "idx",
-		"KEY id_parent"	=> "id_parent",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_documents = array(
-		"id_document"	=> "bigint(21) NOT NULL",
-		"id_vignette"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_type"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"fichier"	=> "varchar(255) NOT NULL",
-		"taille"	=> "integer NOT NULL",
-		"largeur"	=> "integer NOT NULL",
-		"hauteur"	=> "integer NOT NULL",
-		"mode"	=> "ENUM('vignette', 'document') NOT NULL",
-		"inclus"	=> "VARCHAR(3) DEFAULT 'non'",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_documents_key = array(
-		"PRIMARY KEY"	=> "id_document",
-		"KEY id_vignette"	=> "id_vignette",
-		"KEY mode"	=> "mode",
-		"KEY id_type"	=> "id_type");
-
-$spip_types_documents = array(
-		"id_type"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"extension"	=> "varchar(10) NOT NULL",
-		"mime_type"	=> "varchar(100) NOT NULL",
-		"inclus"	=> "ENUM('non', 'image', 'embed') NOT NULL DEFAULT 'non'",
-		"upload"	=> "ENUM('oui', 'non') NOT NULL DEFAULT 'oui'",
-		"maj"	=> "TIMESTAMP");
-
-$spip_types_documents_key = array(
-		"PRIMARY KEY"	=> "id_type",
-		"UNIQUE extension"	=> "extension",
-		"KEY inclus"	=> "inclus");
-
-$spip_syndic = array(
-		"id_syndic"	=> "bigint(21) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"nom_site"	=> "blob NOT NULL",
-		"url_site"	=> "blob NOT NULL",
-		"url_syndic"	=> "blob NOT NULL",
-		"descriptif"	=> "blob NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"syndication"	=> "VARCHAR(3) NOT NULL",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_syndic"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_index"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"extra"			=> "longblob NULL",
-		"moderation"	=> "VARCHAR(3) NOT NULL");
-
-$spip_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY idx"		=> "idx",
-		"KEY statut"	=> "statut, date_syndic");
-
-$spip_syndic_articles = array(
-		"id_syndic_article"	=> "bigint(21) NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"url"	=> "VARCHAR(255) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lesauteurs"	=> "text NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"descriptif"	=> "blob NOT NULL");
-
-$spip_syndic_articles_key = array(
-		"PRIMARY KEY"	=> "id_syndic_article",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY statut"	=> "statut",
-		"KEY url"	=> "url");
-
-$spip_forum = array(
-		"id_forum"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_thread"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "mediumtext NOT NULL",
-		"auteur"	=> "text NOT NULL",
-		"email_auteur"	=> "text NOT NULL",
-		"nom_site"	=> "text NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"statut"	=> "varchar(8) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"ip"	=> "varchar(16)",
-		"maj"	=> "TIMESTAMP",
-		"id_auteur"	=> "BIGINT DEFAULT '0' NOT NULL",
-		"id_message"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum",
-		"KEY id_parent"	=> "id_parent",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_article"	=> "id_article",
-		"KEY id_breve"	=> "id_breve",
-		"KEY id_message"	=> "id_message",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY idx"	=> "idx",
-		"KEY statut"	=> "statut, date_heure");
-
-$spip_signatures = array(
-		"id_signature"	=> "bigint(21) NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_time"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"nom_email"	=> "text NOT NULL",
-		"ad_email"	=> "text NOT NULL",
-		"nom_site"	=> "text NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"message"	=> "mediumtext NOT NULL",
-		"statut"	=> "varchar(10) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_signatures_key = array(
-		"PRIMARY KEY"	=> "id_signature",
-		"KEY id_article"	=> "id_article",
-		"KEY idx"		=> "idx",
-		"KEY statut" => "statut");
-
-global $tables_principales;
-
-/// Attention: mes_fonctions peut avoir deja defini cette variable
-/// il faut donc rajouter, mais pas reinitialiser
-
-$tables_principales['spip_articles'] =
-	array('field' => &$spip_articles, 'key' => &$spip_articles_key);
-$tables_principales['spip_auteurs']  =
-	array('field' => &$spip_auteurs, 'key' => &$spip_auteurs_key);
-$tables_principales['spip_breves']   =
-	array('field' => &$spip_breves, 'key' => &$spip_breves_key);
-$tables_principales['spip_messages'] =
-	array('field' => &$spip_messages, 'key' => &$spip_messages_key);
-$tables_principales['spip_mots']     =
-	array('field' => &$spip_mots, 'key' => &$spip_mots_key);
-$tables_principales['spip_groupes_mots'] =
-	array('field' => &$spip_groupes_mots, 'key' => &$spip_groupes_mots_key);
-$tables_principales['spip_rubriques'] =
-	array('field' => &$spip_rubriques, 'key' => &$spip_rubriques_key);
-$tables_principales['spip_documents'] =
-	array('field' => &$spip_documents,  'key' => &$spip_documents_key);
-$tables_principales['spip_types_documents']	=
-	array('field' => &$spip_types_documents, 'key' => &$spip_types_documents_key);
-$tables_principales['spip_syndic'] =
-	array('field' => &$spip_syndic, 'key' => &$spip_syndic_key);
-$tables_principales['spip_syndic_articles']	=
-	array('field' => &$spip_syndic_articles, 'key' => &$spip_syndic_articles_key);
-$tables_principales['spip_forum'] =
-	array('field' => &$spip_forum,	'key' => &$spip_forum_key);
-$tables_principales['spip_signatures'] =
-	array('field' => &$spip_signatures, 'key' => &$spip_signatures_key);
-
-?>
diff --git a/ecrire/maj/vieille_base/1813/inc_typebase.php b/ecrire/maj/vieille_base/1813/inc_typebase.php
deleted file mode 100644
index 2cca2cd2a5..0000000000
--- a/ecrire/maj/vieille_base/1813/inc_typebase.php
+++ /dev/null
@@ -1,153 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2005                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-//
-// Ce fichier ne sera execute qu'une fois
-if (defined("_ECRIRE_INC_TYPEBASE")) return;
-define("_ECRIRE_INC_TYPEBASE", "1");
-
-global $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-$tables_images = array(
-		       // Images reconnues par PHP
-		       'jpg' => 1, 
-		       'png' => 2, 
-		       'gif' => 3,
-
-		       // Autres images (peuvent utiliser le tag <img>)
-		       'bmp' => 'BMP',
-		       'psd' => 'Photoshop',
-		       'tif' => 'TIFF'
-		       );
-
-// Multimedia (peuvent utiliser le tag <embed>)
-
-$tables_sequences = array(
-			  'aiff' => 'AIFF',
-			  'asf' => 'Windows Media',
-			  'avi' => 'Windows Media',
-			  'mid' => 'Midi',
-			  'mng' => 'MNG',
-			  'mov' => 'QuickTime',
-			  'mp3' => 'MP3',
-			  'mpg' => 'MPEG',
-			  'ogg' => 'Ogg',
-			  'qt' => 'QuickTime',
-			  'ra' => 'RealAudio',
-			  'ram' => 'RealAudio',
-			  'rm' => 'RealAudio',
-			  'swf' => 'Flash',
-			  'wav' => 'WAV',
-			  'wmv' => 'Windows Media'
-			  );
-
-// Documents varies
-$tables_documents = array(
-			  'ai' => 'Adobe Illustrator',
-			  'bz2' => 'BZip',
-			  'c' => 'C source',
-			  'css' => 'Cascading Style Sheet',
-			  'deb' => 'Debian',
-			  'doc' => 'Word',
-			  'djvu' => 'DjVu',
-			  'dvi' => 'LaTeX DVI',
-			  'eps' => 'PostScript',
-			  'gz' => 'GZ',
-			  'h' => 'C header',
-			  'html' => 'HTML',
-			  'pas' => 'Pascal',
-			  'pdf' => 'PDF',
-			  'pgn' => 'Portable Game Notation',
-			  'ppt' => 'PowerPoint',
-			  'ps' => 'PostScript',
-			  'rpm' => 'RedHat/Mandrake/SuSE',
-			  'rtf' => 'RTF',
-			  'sdd' => 'StarOffice',
-			  'sdw' => 'StarOffice',
-			  'sit' => 'Stuffit',
-			  'sxc' => 'OpenOffice Calc',
-			  'sxi' => 'OpenOffice Impress',
-			  'sxw' => 'OpenOffice',
-			  'tex' => 'LaTeX',
-			  'tgz' => 'TGZ',
-			  'txt' => 'texte',
-			  'xcf' => 'GIMP multi-layer',
-			  'xls' => 'Excel',
-			  'xml' => 'XML',
-			  'zip' => 'Zip'
-			  );
-
-$tables_mime = array(
-		// Images reconnues par PHP
-		'jpg'=>'image/jpeg',
-		'png'=>'image/png',
-		'gif'=>'image/gif',
-
-		// Autres images (peuvent utiliser le tag <img>)
-		'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
-		'psd'=>'image/x-photoshop',	// pas IANA
-		'tif'=>'image/tiff',
-
-		// Multimedia (peuvent utiliser le tag <embed>)
-		'aiff'=>'audio/x-aiff',
-		'asf'=>'video/x-ms-asf',
-		'avi'=>'video/x-msvideo',
-		'mid'=>'audio/midi',
-		'mng'=>'video/x-mng',
-		'mov'=>'video/quicktime',
-		'mp3'=>'audio/mpeg',
-		'mpg'=>'video/mpeg',
-		'ogg'=>'application/ogg',
-		'qt' =>'video/quicktime',
-		'ra' =>'audio/x-pn-realaudio',
-		'ram'=>'audio/x-pn-realaudio',
-		'rm' =>'audio/x-pn-realaudio',
-		'swf'=>'application/x-shockwave-flash',
-		'wav'=>'audio/x-wav',
-		'wmv'=>'video/x-ms-wmv',
-
-		// Documents varies
-		'ai' =>'application/illustrator',
-		'bz2'=>'application/x-bzip2',
-		'c'  =>'text/x-csrc',
-		'css'=>'text/css',
-		'deb'=>'application/x-debian-package',
-		'doc'=>'application/msword',
-		'djvu'=>'image/vnd.djvu',
-		'dvi'=>'application/x-dvi',
-		'eps'=>'application/postscript',
-		'gz' =>'application/x-gzip',
-		'h'  =>'text/x-chdr',
-		'html'=>'text/html',
-		'pas'=>'text/x-pascal',
-		'pdf'=>'application/pdf',
-		'pgn' =>'application/x-chess-pgn',
-		'ppt'=>'application/vnd.ms-powerpoint',
-		'ps' =>'application/postscript',
-		'rpm'=>'application/x-redhat-package-manager',
-		'rtf'=>'application/rtf',
-		'sdd'=>'application/vnd.stardivision.impress',
-		'sdw'=>'application/vnd.stardivision.writer',
-		'sit'=>'application/x-stuffit',
-		'sxc'=>'application/vnd.sun.xml.calc',
-		'sxi'=>'application/vnd.sun.xml.impress',
-		'sxw'=>'application/vnd.sun.xml.writer',
-		'tex'=>'text/x-tex',
-		'tgz'=>'application/x-gtar',
-		'txt'=>'text/plain',
-		'xcf'=>'application/x-xcf',
-		'xls'=>'application/vnd.ms-excel',
-		'xml'=>'application/xml',
-		'zip'=>'application/zip'
-	);
-?>
diff --git a/ecrire/maj/vieille_base/1821/create.php b/ecrire/maj/vieille_base/1821/create.php
deleted file mode 100644
index 894d9d2d85..0000000000
--- a/ecrire/maj/vieille_base/1821/create.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2005                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-include_spip('maj/vieille_base/1821/inc_serialbase');
-include_spip('maj/vieille_base/1821/inc_auxbase');
-include_spip('maj/vieille_base/1821/inc_typebase');
-
-function maj_vieille_base_1821_create() {
-	global $tables_principales, $tables_auxiliaires, $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-	// ne pas revenir plusieurs fois (si, au contraire, il faut pouvoir
-	// le faire car certaines mises a jour le demandent explicitement)
-	# static $vu = false;
-	# if ($vu) return; else $vu = true;
-
-	foreach($tables_principales as $k => $v)
-		spip_create_vieille_table($k, $v['field'], $v['key'], true);
-
-	foreach($tables_auxiliaires as $k => $v)
-		spip_create_vieille_table($k, $v['field'], $v['key'], false);
-
-	foreach($tables_images as $k => $v)
-		spip_query("INSERT IGNORE spip_types_documents (extension, inclus, titre, id_type) VALUES ('$k', 'image', '" .
-			      (is_numeric($v) ?
-			       (strtoupper($k) . "', $v") :
-			       "$v', 0") .
-			      ")");
-
-	foreach($tables_sequences as $k => $v)
-		spip_query("INSERT IGNORE spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'embed')");
-
-	foreach($tables_documents as $k => $v)
-		spip_query("INSERT IGNORE spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'non')");
-
-	foreach ($tables_mime as $extension => $type_mime)
-	  spip_query("UPDATE spip_types_documents
-		SET mime_type='$type_mime' WHERE extension='$extension'");
-}
-
-
-?>
\ No newline at end of file
diff --git a/ecrire/maj/vieille_base/1821/inc_auxbase.php b/ecrire/maj/vieille_base/1821/inc_auxbase.php
deleted file mode 100644
index 5bf01bc73c..0000000000
--- a/ecrire/maj/vieille_base/1821/inc_auxbase.php
+++ /dev/null
@@ -1,471 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2005                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-// Ce fichier ne sera execute qu'une fois
-if (defined("_ECRIRE_INC_AUXBASE")) return;
-define("_ECRIRE_INC_AUXBASE", "1");
-
-$spip_petitions = array(
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"email_unique"	=> "CHAR (3) NOT NULL",
-		"site_obli"	=> "CHAR (3) NOT NULL",
-		"site_unique"	=> "CHAR (3) NOT NULL",
-		"message"	=> "CHAR (3) NOT NULL",
-		"texte"	=> "LONGBLOB NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_petitions_key = array(
-		"PRIMARY KEY"	=> "id_article");
-
-$spip_visites_temp = array(
-		"ip"	=> "INT UNSIGNED NOT NULL",
-		"type"	=> "ENUM ('article', 'rubrique', 'breve', 'autre') NOT NULL",
-		"id_objet"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_temp_key = array(
-		"PRIMARY KEY"	=> "type, id_objet, ip");
-
-$spip_visites = array(
-		"date"	=> "DATE NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_key = array(
-		"PRIMARY KEY"	=> "date");
-
-$spip_visites_articles = array(
-		"date"	=> "DATE NOT NULL",
-		"id_article"	=> "INT UNSIGNED NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_articles_key = array(
-		"PRIMARY KEY"	=> "date, id_article");
-
-$spip_referers_temp = array(
-		"ip"	=> "INT UNSIGNED NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"type"	=> "ENUM ('article', 'rubrique', 'breve', 'autre') NOT NULL",
-		"id_objet"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_referers_temp_key = array(
-		"PRIMARY KEY"	=> "type, id_objet, referer_md5, ip");
-
-$spip_referers = array(
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"visites_jour"	=> "INT UNSIGNED NOT NULL",
-		"visites_veille"=> "INT UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_key = array(
-		"PRIMARY KEY"	=> "referer_md5");
-
-$spip_referers_articles = array(
-		"id_article"	=> "INT UNSIGNED NOT NULL",
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, referer_md5",
-		"KEY referer_md5"	=> "referer_md5");
-
-$spip_auteurs_articles = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_articles_key = array(
-		"KEY id_auteur"	=> "id_auteur",
-		"KEY id_article"	=> "id_article");
-
-$spip_auteurs_rubriques = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_rubriques_key = array(
-		"KEY id_auteur"	=> "id_auteur",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_auteurs_messages = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_message"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"vu"		=> "CHAR (3) NOT NULL");
-
-$spip_auteurs_messages_key = array(
-		"KEY id_auteur"	=> "id_auteur",
-		"KEY id_message"	=> "id_message");
-
-
-$spip_documents_articles = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_articles_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_article"	=> "id_article");
-
-$spip_documents_rubriques = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_rubriques_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_documents_breves = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_breves_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_breve"	=> "id_breve");
-
-$spip_documents_syndic = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_syndic_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL"
-		);
-
-$spip_documents_syndic_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY id_syndic_article"	=> "id_syndic_article");
-
-$spip_mots_articles = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_articles_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_article"	=> "id_article");
-
-$spip_mots_breves = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_breves_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_breve"	=> "id_breve");
-
-$spip_mots_rubriques = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_rubriques_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_mots_syndic = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_syndic_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_syndic"	=> "id_syndic");
-
-$spip_mots_forum = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_forum"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_forum_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_forum"	=> "id_forum");
-
-$spip_mots_documents = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_documents_key = array(
-		"KEY id_mot"	=> "id_mot",
-		"KEY id_document"	=> "id_document");
-
-$spip_meta = array(
-		"nom"	=> "VARCHAR (255) NOT NULL",
-		"valeur"	=> "VARCHAR (255) DEFAULT ''",
-		"maj"	=> "TIMESTAMP");
-
-$spip_meta_key = array(
-		"PRIMARY KEY"	=> "nom");
-
-$spip_index_articles = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_article"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_articles_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_article"	=> "id_article");
-
-$spip_index_auteurs = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_auteur"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_auteurs_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_index_breves = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_breve"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_breves_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_breve"	=> "id_breve");
-
-$spip_index_mots = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_mot"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_mots_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_index_rubriques = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_rubriques_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_index_syndic = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_syndic_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_syndic"	=> "id_syndic");
-
-$spip_index_signatures = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_signature"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_signatures_key = array(
-		"KEY `hash`"		=> "`hash`",
-		"KEY id_signature"	=> "id_signature");
-
-$spip_index_forum = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_forum"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_forum_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_forum"	=> "id_forum");
-
-$spip_index_documents = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_document"	=> "INT UNSIGNED NOT NULL");
-
-$spip_index_documents_key = array(
-		"KEY `hash`"	=> "`hash`",
-		"KEY id_document"	=> "id_document");
-
-$spip_index_dico = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"dico"		=> "VARCHAR (30) NOT NULL");
-
-$spip_index_dico_key = array(
-		"PRIMARY KEY"	=> "dico");
-
-$spip_versions = array (
-		"id_article"	=> "bigint(21) NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"titre_version"	=> "text DEFAULT '' NOT NULL",
-		"permanent"	=> "char(3) NOT NULL",
-		"champs"	=> "text NOT NULL");
-
-$spip_versions_key = array (
-		"PRIMARY KEY"	=> "id_article, id_version",
-		"KEY date"	=> "id_article, date",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_versions_fragments = array(
-		"id_fragment"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_min"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_max"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) NOT NULL",
-		"compress"	=> "tinyint NOT NULL",
-		"fragment"	=> "longblob NOT NULL");
-
-$spip_versions_fragments_key = array(
-	     "PRIMARY KEY"	=> "id_article, id_fragment, version_min");
-
-$spip_caches = array(
-		"fichier" => "char (64) NOT NULL",
-		"id" => "char (64) NOT NULL",
-		// i=par id, t=timer, x=suppression
-		"type" => "CHAR (1) DEFAULT 'i' NOT NULL",
-		"taille" => "integer DEFAULT '0' NOT NULL");
-$spip_caches_key = array(
-		"PRIMARY KEY"	=> "fichier, id",
-		"KEY fichier" => "fichier",
-		"KEY id" => "id");
-
-$spip_ortho_cache = array(
-	"lang" => "VARCHAR(10) NOT NULL",
-	"mot" => "VARCHAR(255) BINARY NOT NULL",
-	"ok" => "TINYINT NOT NULL",
-	"suggest" => "BLOB NOT NULL",
-	"maj" => "TIMESTAMP");
-$spip_ortho_cache_key = array(
-	"PRIMARY KEY" => "lang, mot",
-	"KEY maj" => "maj");
-
-$spip_ortho_dico = array(
-	"lang" => "VARCHAR(10) NOT NULL",
-	"mot" => "VARCHAR(255) BINARY NOT NULL",
-	"id_auteur" => "BIGINT UNSIGNED NOT NULL",
-	"maj" => "TIMESTAMP");
-$spip_ortho_dico_key = array(
-	"PRIMARY KEY" => "lang, mot",);
-
-
-global $tables_auxiliaires;
-
-$tables_auxiliaires  = 
-  array(
-	'spip_petitions' => array('field' => &$spip_petitions,
-			     'key' => &$spip_petitions_key),
-	'spip_visites_temp' => array('field' => &$spip_visites_temp,
-				'key' => &$spip_visites_temp_key),
-	'spip_visites' =>	array('field' => &$spip_visites,
-			      'key' => &$spip_visites_key),
-	'spip_visites_articles' => array('field' => &$spip_visites_articles,
-				    'key' => &$spip_visites_articles_key),
-	'spip_referers_temp' => array('field' => &$spip_referers_temp,
-				 'key' => &$spip_referers_temp_key),
-	'spip_referers' => array('field' => &$spip_referers,
-			    'key' => &$spip_referers_key),
-	'spip_referers_articles' => array('field' => &$spip_referers_articles,
-				     'key' => &$spip_referers_articles_key),
-	'spip_auteurs_articles' => array('field' => &$spip_auteurs_articles,
-				    'key' => &$spip_auteurs_articles_key),
-	'spip_auteurs_rubriques' => array('field' => &$spip_auteurs_rubriques,
-				     'key' => &$spip_auteurs_rubriques_key),
-	'spip_auteurs_messages' => array('field' => &$spip_auteurs_messages,
-				    'key' => &$spip_auteurs_messages_key),
-	'spip_documents_articles' => array('field' => &$spip_documents_articles,
-				      'key' => &$spip_documents_articles_key),
-	'spip_documents_rubriques' => array('field' => &$spip_documents_rubriques,
-				       'key' => &$spip_documents_rubriques_key),
-	'spip_documents_breves' => array('field' => &$spip_documents_breves,
-				    'key' => &$spip_documents_breves_key),
-	'spip_documents_syndic' => array('field' => &$spip_documents_syndic,
-				    'key' => &$spip_documents_syndic_key),
-	'spip_mots_articles' => array('field' => &$spip_mots_articles,
-				 'key' => &$spip_mots_articles_key),
-	'spip_mots_breves' => array('field' => &$spip_mots_breves,
-			       'key' => &$spip_mots_breves_key),
-	'spip_mots_rubriques' => array('field' => &$spip_mots_rubriques,
-				  'key' => &$spip_mots_rubriques_key),
-	'spip_mots_syndic' => array('field' => &$spip_mots_syndic,
-			       'key' => &$spip_mots_syndic_key),
-	'spip_mots_forum' => array('field' => &$spip_mots_forum,
-			      'key' => &$spip_mots_forum_key),
-	'spip_mots_documents' => array('field' => &$spip_mots_documents,
-			      'key' => &$spip_mots_documents_key),
-	'spip_meta' => array('field' => &$spip_meta,
-			'key' => &$spip_meta_key),
-	'spip_index_articles' => array('field' => &$spip_index_articles,
-				  'key' => &$spip_index_articles_key),
-	'spip_index_auteurs' => array('field' => &$spip_index_auteurs,
-				 'key' => &$spip_index_auteurs_key),
-	'spip_index_breves' => array('field' => &$spip_index_breves,
-				'key' => &$spip_index_breves_key),
-	'spip_index_mots' => array('field' => &$spip_index_mots,
-			      'key' => &$spip_index_mots_key),
-	'spip_index_rubriques' => array('field' => &$spip_index_rubriques,
-				   'key' => &$spip_index_rubriques_key),
-	'spip_index_syndic' => array('field' => &$spip_index_syndic,
-				'key' => &$spip_index_syndic_key),
-	'spip_index_signatures' => array('field' => &$spip_index_signatures,
-				    'key' => &$spip_index_signatures_key),
-	'spip_index_forum' => array('field' => &$spip_index_forum,
-			       'key' => &$spip_index_forum_key),
-	'spip_index_documents' => array('field' => &$spip_index_documents,
-			       'key' => &$spip_index_documents_key),
-	'spip_index_dico' => array('field' => &$spip_index_dico,
-			      'key' => &$spip_index_dico_key),
-	'spip_versions'	=> array('field' => &$spip_versions,
-					 'key' => &$spip_versions_key),
-	'spip_versions_fragments'	=> array('field' => &$spip_versions_fragments,
-					 'key' => &$spip_versions_fragments_key),
-	'spip_caches'	=> array('field' => &$spip_caches,
-					 'key' => &$spip_caches_key),
-	'spip_ortho_cache'	=> array('field' => &$spip_ortho_cache,
-					 'key' => &$spip_ortho_cache_key),
-	'spip_ortho_dico'	=> array('field' => &$spip_ortho_dico,
-					 'key' => &$spip_ortho_dico_key)
-	);
-
-	
-//
-// tableau des tables de relations,
-// Ex: gestion du critere {id_mot} dans la boucle(ARTICLES)
-// transposee en tables_jointures pour le code moderne
-//
-global $tables_jointures;
-
-$tables_jointures['spip_articles']['id_mot']='mots_articles';
-$tables_jointures['spip_articles']['id_auteur']='auteurs_articles';
-$tables_jointures['spip_articles']['id_document']='documents_articles';
-
-$tables_jointures['spip_auteurs']['id_article']='auteurs_articles';
-
-$tables_jointures['spip_breves']['id_mot']='mots_breves';
-$tables_jointures['spip_breves']['id_document']='documents_breves';
-
-$tables_jointures['spip_documents']['id_article']='documents_articles';
-$tables_jointures['spip_documents']['id_rubrique']='documents_rubriques';
-$tables_jointures['spip_documents']['id_breve']='documents_breves';
-$tables_jointures['spip_documents']['id_syndic']='documents_syndic';
-$tables_jointures['spip_documents']['id_syndic_article']='documents_syndic';
-$tables_jointures['spip_documents']['id_mot']='mots_documents';
-
-$tables_jointures['spip_forums']['id_mot']='mots_forum';
-
-$tables_jointures['spip_mots']['id_article']='mots_articles';
-$tables_jointures['spip_mots']['id_breve']='mots_breves';
-$tables_jointures['spip_mots']['id_forum']='mots_forum';
-$tables_jointures['spip_mots']['id_rubrique']='mots_rubriques';
-$tables_jointures['spip_mots']['id_syndic']='mots_syndic';
-$tables_jointures['spip_mots']['id_document']='mots_documents';
-
-$tables_jointures['spip_groupes_mots']['id_groupe']='mots';
-
-$tables_jointures['spip_rubriques']['id_mot']='mots_rubriques';
-$tables_jointures['spip_rubriques']['id_document']='documents_rubriques';
-
-$tables_jointures['spip_syndication']['id_mot']='mots_syndic';
-$tables_jointures['spip_syndication']['id_document']='documents_syndic';
-$tables_jointures['spip_syndic_articles']['id_document']='documents_syndic';
-
-?>
\ No newline at end of file
diff --git a/ecrire/maj/vieille_base/1821/inc_serialbase.php b/ecrire/maj/vieille_base/1821/inc_serialbase.php
deleted file mode 100644
index 281e317be0..0000000000
--- a/ecrire/maj/vieille_base/1821/inc_serialbase.php
+++ /dev/null
@@ -1,368 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2005                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-// Ce fichier ne sera execute qu'une fois
-if (defined("_ECRIRE_INC_SERIALBASE")) return;
-define("_ECRIRE_INC_SERIALBASE", "1");
-
-
-$spip_articles = array(
-		"id_article"	=> "bigint(21) NOT NULL",
-		"surtitre"	=> "text NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"soustitre"	=> "text NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"chapo"	=> "mediumtext NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"ps"	=> "mediumtext NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"date_redac"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"visites"	=> "INTEGER DEFAULT '0' NOT NULL",
-		"referers"	=> "INTEGER DEFAULT '0' NOT NULL",
-		"popularite"	=> "DOUBLE DEFAULT '0' NOT NULL",
-		"accepter_forum"	=> "CHAR(3) NOT NULL",
-		"auteur_modif"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_modif"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"		=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"id_trad"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"extra"		=> "longblob NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"nom_site"	=> "tinytext NOT NULL",
-		"url_site"	=> "VARCHAR(255) NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL");
-
-$spip_articles_key = array(
-		"PRIMARY KEY"		=> "id_article",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY id_trad"		=> "id_trad",
-		"KEY lang"			=> "lang",
-		"KEY statut"		=> "statut, date",
-		"KEY url_site"		=> "url_site",
-		"KEY date_modif"	=> "date_modif",
-		"KEY idx"			=> "idx",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_auteurs = array(
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"nom"	=> "text NOT NULL",
-		"bio"	=> "text NOT NULL",
-		"email"	=> "tinytext NOT NULL",
-		"nom_site"	=> "tinytext NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"login"	=> "VARCHAR(255) BINARY NOT NULL",
-		"pass"	=> "tinytext NOT NULL",
-		"low_sec"	=> "tinytext NOT NULL",
-		"statut"	=> "VARCHAR(255) NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"pgp"	=> "BLOB NOT NULL",
-		"htpass"	=> "tinyblob NOT NULL",
-		"en_ligne"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"imessage"	=> "VARCHAR(3) NOT NULL",
-		"messagerie"	=> "VARCHAR(3) NOT NULL",
-		"alea_actuel"	=> "tinytext NOT NULL",
-		"alea_futur"	=> "tinytext NOT NULL",
-		"prefs"	=> "tinytext NOT NULL",
-		"cookie_oubli"	=> "tinytext NOT NULL",
-		"source"	=> "VARCHAR(10) DEFAULT 'spip' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"extra"	=> "longblob NULL");
-
-$spip_auteurs_key = array(
-		"PRIMARY KEY"	=> "id_auteur",
-		"KEY login"	=> "login",
-		"KEY statut"	=> "statut",
-		"KEY lang"	=> "lang",
-		"KEY idx"	=> "idx",
-		"KEY en_ligne"	=> "en_ligne");
-
-$spip_breves = array(
-		"id_breve"	=> "bigint(21) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"lien_titre"	=> "text NOT NULL",
-		"lien_url"	=> "text NOT NULL",
-		"statut"	=> "varchar(6) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"maj"	=> "TIMESTAMP",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL");
-
-$spip_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve",
-		"KEY idx"	=> "idx",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_messages = array(
-		"id_message"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"type"	=> "varchar(6) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_fin"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"rv"	=> "varchar(3) NOT NULL",
-		"statut"	=> "varchar(6) NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_messages_key = array(
-		"PRIMARY KEY"	=> "id_message",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_mots = array(
-		"id_mot"	=> "bigint(21) NOT NULL",
-		"type"	=> "VARCHAR(100) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"extra"	=> "longblob NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_mots_key = array(
-		"PRIMARY KEY"	=> "id_mot",
-		"KEY idx"	=> "idx",
-		"KEY type"	=> "type",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_groupes_mots = array(
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"unseul"	=> "varchar(3) NOT NULL",
-		"obligatoire"	=> "varchar(3) NOT NULL",
-		"articles"	=> "varchar(3) NOT NULL",
-		"breves"	=> "varchar(3) NOT NULL",
-		"rubriques"	=> "varchar(3) NOT NULL",
-		"syndic"	=> "varchar(3) NOT NULL",
-		"minirezo"	=> "varchar(3) NOT NULL",
-		"comite"	=> "varchar(3) NOT NULL",
-		"forum"	=> "varchar(3) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_groupes_mots_key = array(
-		"PRIMARY KEY"	=> "id_groupe");
-
-$spip_rubriques = array(
-		"id_rubrique"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"id_import"	=> "BIGINT DEFAULT '0'",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"statut_tmp"	=> "VARCHAR(10) NOT NULL",
-		"date_tmp"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL"
-		);
-
-$spip_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique",
-		"KEY lang"	=> "lang",
-		"KEY idx"	=> "idx",
-		"KEY id_parent"	=> "id_parent",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_documents = array(
-		"id_document"	=> "bigint(21) NOT NULL",
-		"id_vignette"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_type"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"fichier"	=> "varchar(255) NOT NULL",
-		"taille"	=> "integer NOT NULL",
-		"largeur"	=> "integer NOT NULL",
-		"hauteur"	=> "integer NOT NULL",
-		"mode"	=> "ENUM('vignette', 'document') NOT NULL",
-		"inclus"	=> "VARCHAR(3) DEFAULT 'non'",
-		"distant"	=> "VARCHAR(3) DEFAULT 'non'",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_documents_key = array(
-		"PRIMARY KEY"	=> "id_document",
-		"KEY id_vignette"	=> "id_vignette",
-		"KEY mode"	=> "mode",
-		"KEY id_type"	=> "id_type");
-
-$spip_types_documents = array(
-		"id_type"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"extension"	=> "varchar(10) NOT NULL",
-		"mime_type"	=> "varchar(100) NOT NULL",
-		"inclus"	=> "ENUM('non', 'image', 'embed') NOT NULL DEFAULT 'non'",
-		"upload"	=> "ENUM('oui', 'non') NOT NULL DEFAULT 'oui'",
-		"maj"	=> "TIMESTAMP");
-
-$spip_types_documents_key = array(
-		"PRIMARY KEY"	=> "id_type",
-		"UNIQUE extension"	=> "extension",
-		"KEY inclus"	=> "inclus");
-
-$spip_syndic = array(
-		"id_syndic"	=> "bigint(21) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"nom_site"	=> "blob NOT NULL",
-		"url_site"	=> "blob NOT NULL",
-		"url_syndic"	=> "blob NOT NULL",
-		"descriptif"	=> "blob NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"syndication"	=> "VARCHAR(3) NOT NULL",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_syndic"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_index"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"extra"			=> "longblob NULL",
-		"moderation"	=> "VARCHAR(3) DEFAULT 'non'",
-		"miroir"	=> "VARCHAR(3) DEFAULT 'non'",
-		"oubli"	=> "VARCHAR(3) DEFAULT 'non'"
-);
-
-$spip_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY idx"		=> "idx",
-		"KEY statut"	=> "statut, date_syndic");
-
-$spip_syndic_articles = array(
-		"id_syndic_article"	=> "bigint(21) NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"url"	=> "VARCHAR(255) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lesauteurs"	=> "text NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"descriptif"	=> "blob NOT NULL");
-
-$spip_syndic_articles_key = array(
-		"PRIMARY KEY"	=> "id_syndic_article",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY statut"	=> "statut",
-		"KEY url"	=> "url");
-
-$spip_forum = array(
-		"id_forum"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_thread"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "mediumtext NOT NULL",
-		"auteur"	=> "text NOT NULL",
-		"email_auteur"	=> "text NOT NULL",
-		"nom_site"	=> "text NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"statut"	=> "varchar(8) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"ip"	=> "varchar(16)",
-		"maj"	=> "TIMESTAMP",
-		"id_auteur"	=> "BIGINT DEFAULT '0' NOT NULL",
-		"id_message"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum",
-		"KEY id_parent"	=> "id_parent",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_article"	=> "id_article",
-		"KEY id_breve"	=> "id_breve",
-		"KEY id_message"	=> "id_message",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY idx"	=> "idx",
-		"KEY statut"	=> "statut, date_heure");
-
-$spip_signatures = array(
-		"id_signature"	=> "bigint(21) NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_time"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"nom_email"	=> "text NOT NULL",
-		"ad_email"	=> "text NOT NULL",
-		"nom_site"	=> "text NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"message"	=> "mediumtext NOT NULL",
-		"statut"	=> "varchar(10) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_signatures_key = array(
-		"PRIMARY KEY"	=> "id_signature",
-		"KEY id_article"	=> "id_article",
-		"KEY idx"		=> "idx",
-		"KEY statut" => "statut");
-
-global $tables_principales;
-
-/// Attention: mes_fonctions peut avoir deja defini cette variable
-/// il faut donc rajouter, mais pas reinitialiser
-
-$tables_principales['spip_articles'] =
-	array('field' => &$spip_articles, 'key' => &$spip_articles_key);
-$tables_principales['spip_auteurs']  =
-	array('field' => &$spip_auteurs, 'key' => &$spip_auteurs_key);
-$tables_principales['spip_breves']   =
-	array('field' => &$spip_breves, 'key' => &$spip_breves_key);
-$tables_principales['spip_messages'] =
-	array('field' => &$spip_messages, 'key' => &$spip_messages_key);
-$tables_principales['spip_mots']     =
-	array('field' => &$spip_mots, 'key' => &$spip_mots_key);
-$tables_principales['spip_groupes_mots'] =
-	array('field' => &$spip_groupes_mots, 'key' => &$spip_groupes_mots_key);
-$tables_principales['spip_rubriques'] =
-	array('field' => &$spip_rubriques, 'key' => &$spip_rubriques_key);
-$tables_principales['spip_documents'] =
-	array('field' => &$spip_documents,  'key' => &$spip_documents_key);
-$tables_principales['spip_types_documents']	=
-	array('field' => &$spip_types_documents, 'key' => &$spip_types_documents_key);
-$tables_principales['spip_syndic'] =
-	array('field' => &$spip_syndic, 'key' => &$spip_syndic_key);
-$tables_principales['spip_syndic_articles']	=
-	array('field' => &$spip_syndic_articles, 'key' => &$spip_syndic_articles_key);
-$tables_principales['spip_forum'] =
-	array('field' => &$spip_forum,	'key' => &$spip_forum_key);
-$tables_principales['spip_signatures'] =
-	array('field' => &$spip_signatures, 'key' => &$spip_signatures_key);
-
-?>
diff --git a/ecrire/maj/vieille_base/1821/inc_typebase.php b/ecrire/maj/vieille_base/1821/inc_typebase.php
deleted file mode 100644
index caf08ddcca..0000000000
--- a/ecrire/maj/vieille_base/1821/inc_typebase.php
+++ /dev/null
@@ -1,157 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2005                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-//
-// Ce fichier ne sera execute qu'une fois
-if (defined("_ECRIRE_INC_TYPEBASE")) return;
-define("_ECRIRE_INC_TYPEBASE", "1");
-
-global $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-$tables_images = array(
-		       // Images reconnues par PHP
-		       'jpg' => 1, 
-		       'png' => 2, 
-		       'gif' => 3,
-
-		       // Autres images (peuvent utiliser le tag <img>)
-		       'bmp' => 'BMP',
-		       'psd' => 'Photoshop',
-		       'tif' => 'TIFF'
-		       );
-
-// Multimedia (peuvent utiliser le tag <embed>)
-
-$tables_sequences = array(
-			  'aiff' => 'AIFF',
-			  'asf' => 'Windows Media',
-			  'avi' => 'Windows Media',
-			  'mid' => 'Midi',
-			  'mng' => 'MNG',
-			  'mov' => 'QuickTime',
-			  'mp3' => 'MP3',
-			  'mpg' => 'MPEG',
-			  'ogg' => 'Ogg',
-			  'qt' => 'QuickTime',
-			  'ra' => 'RealAudio',
-			  'ram' => 'RealAudio',
-			  'rm' => 'RealAudio',
-			  'swf' => 'Flash',
-			  'wav' => 'WAV',
-			  'wmv' => 'Windows Media'
-			  );
-
-// Documents varies
-$tables_documents = array(
-			  'ai' => 'Adobe Illustrator',
-			  'bz2' => 'BZip',
-			  'bin' => 'Binary Data',
-			  'c' => 'C source',
-			  'css' => 'Cascading Style Sheet',
-			  'deb' => 'Debian',
-			  'doc' => 'Word',
-			  'djvu' => 'DjVu',
-			  'dvi' => 'LaTeX DVI',
-			  'eps' => 'PostScript',
-			  'gz' => 'GZ',
-			  'h' => 'C header',
-			  'html' => 'HTML',
-			  'pas' => 'Pascal',
-			  'pdf' => 'PDF',
-			  'pgn' => 'Portable Game Notation',
-			  'ppt' => 'PowerPoint',
-			  'ps' => 'PostScript',
-			  'rpm' => 'RedHat/Mandrake/SuSE',
-			  'rtf' => 'RTF',
-			  'sdd' => 'StarOffice',
-			  'sdw' => 'StarOffice',
-			  'sit' => 'Stuffit',
-			  'sxc' => 'OpenOffice Calc',
-			  'sxi' => 'OpenOffice Impress',
-			  'sxw' => 'OpenOffice',
-			  'tex' => 'LaTeX',
-			  'torrent' => 'BitTorrent',
-			  'tgz' => 'TGZ',
-			  'txt' => 'texte',
-			  'xcf' => 'GIMP multi-layer',
-			  'xls' => 'Excel',
-			  'xml' => 'XML',
-			  'zip' => 'Zip'
-			  );
-
-$tables_mime = array(
-		// Images reconnues par PHP
-		'jpg'=>'image/jpeg',
-		'png'=>'image/png',
-		'gif'=>'image/gif',
-
-		// Autres images (peuvent utiliser le tag <img>)
-		'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
-		'psd'=>'image/x-photoshop',	// pas IANA
-		'tif'=>'image/tiff',
-
-		// Multimedia (peuvent utiliser le tag <embed>)
-		'aiff'=>'audio/x-aiff',
-		'asf'=>'video/x-ms-asf',
-		'avi'=>'video/x-msvideo',
-		'mid'=>'audio/midi',
-		'mng'=>'video/x-mng',
-		'mov'=>'video/quicktime',
-		'mp3'=>'audio/mpeg',
-		'mpg'=>'video/mpeg',
-		'ogg'=>'application/ogg',
-		'qt' =>'video/quicktime',
-		'ra' =>'audio/x-pn-realaudio',
-		'ram'=>'audio/x-pn-realaudio',
-		'rm' =>'audio/x-pn-realaudio',
-		'swf'=>'application/x-shockwave-flash',
-		'wav'=>'audio/x-wav',
-		'wmv'=>'video/x-ms-wmv',
-
-		// Documents varies
-		'ai' =>'application/illustrator',
-		'bin' => 'application/octet-stream', # le tout-venant
-		'bz2'=>'application/x-bzip2',
-		'c'  =>'text/x-csrc',
-		'css'=>'text/css',
-		'deb'=>'application/x-debian-package',
-		'doc'=>'application/msword',
-		'djvu'=>'image/vnd.djvu',
-		'dvi'=>'application/x-dvi',
-		'eps'=>'application/postscript',
-		'gz' =>'application/x-gzip',
-		'h'  =>'text/x-chdr',
-		'html'=>'text/html',
-		'pas'=>'text/x-pascal',
-		'pdf'=>'application/pdf',
-		'pgn' =>'application/x-chess-pgn',
-		'ppt'=>'application/vnd.ms-powerpoint',
-		'ps' =>'application/postscript',
-		'rpm'=>'application/x-redhat-package-manager',
-		'rtf'=>'application/rtf',
-		'sdd'=>'application/vnd.stardivision.impress',
-		'sdw'=>'application/vnd.stardivision.writer',
-		'sit'=>'application/x-stuffit',
-		'sxc'=>'application/vnd.sun.xml.calc',
-		'sxi'=>'application/vnd.sun.xml.impress',
-		'sxw'=>'application/vnd.sun.xml.writer',
-		'tex'=>'text/x-tex',
-		'torrent' => 'application/x-bittorrent',
-		'tgz'=>'application/x-gtar',
-		'txt'=>'text/plain',
-		'xcf'=>'application/x-xcf',
-		'xls'=>'application/vnd.ms-excel',
-		'xml'=>'application/xml',
-		'zip'=>'application/zip'
-	);
-?>
diff --git a/ecrire/maj/vieille_base/1915/auxiliaires.php b/ecrire/maj/vieille_base/1915/auxiliaires.php
deleted file mode 100644
index c28a154ccf..0000000000
--- a/ecrire/maj/vieille_base/1915/auxiliaires.php
+++ /dev/null
@@ -1,378 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2006                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-$spip_petitions = array(
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"email_unique"	=> "CHAR (3) NOT NULL",
-		"site_obli"	=> "CHAR (3) NOT NULL",
-		"site_unique"	=> "CHAR (3) NOT NULL",
-		"message"	=> "CHAR (3) NOT NULL",
-		"texte"	=> "LONGBLOB NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_petitions_key = array(
-		"PRIMARY KEY"	=> "id_article");
-
-$spip_visites = array(
-		"date"	=> "DATE NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_key = array(
-		"PRIMARY KEY"	=> "date");
-
-$spip_visites_articles = array(
-		"date"	=> "DATE NOT NULL",
-		"id_article"	=> "INT UNSIGNED NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_articles_key = array(
-		"PRIMARY KEY"	=> "date, id_article");
-
-$spip_referers = array(
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"visites_jour"	=> "INT UNSIGNED NOT NULL",
-		"visites_veille"=> "INT UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_key = array(
-		"PRIMARY KEY"	=> "referer_md5");
-
-$spip_referers_articles = array(
-		"id_article"	=> "INT UNSIGNED NOT NULL",
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, referer_md5",
-		"KEY referer_md5"	=> "referer_md5");
-
-$spip_auteurs_articles = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_articles_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_article",
-		"KEY id_article"	=> "id_article");
-
-$spip_auteurs_rubriques = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_rubrique",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_auteurs_messages = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_message"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"vu"		=> "CHAR (3) NOT NULL");
-
-$spip_auteurs_messages_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_message",
-		"KEY id_message"	=> "id_message");
-
-
-$spip_documents_articles = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_articles_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_article"	=> "id_article");
-
-$spip_documents_rubriques = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_rubriques_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_documents_breves = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_breves_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_breve"	=> "id_breve");
-
-$spip_mots_articles = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_breves = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_rubriques = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_syndic = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_forum = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_forum"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_documents = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_documents_key = array(
-		"PRIMARY KEY"	=> "id_document, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_meta = array(
-		"nom"	=> "VARCHAR (255) NOT NULL",
-		"valeur"	=> "text DEFAULT ''",
-		"maj"	=> "TIMESTAMP");
-
-$spip_meta_key = array(
-		"PRIMARY KEY"	=> "nom");
-
-$spip_index = array(
- 		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
- 		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_objet"	=> "INT UNSIGNED NOT NULL",
-		"id_table"	=> "TINYINT UNSIGNED NOT NULL"	);
-
-$spip_index_key = array(
- 		"KEY `hash`"	=> "`hash`",
-		"KEY id_objet"	=> "id_objet",
-		"KEY id_table"	=> "id_table");
-
-$spip_index_dico = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"dico"		=> "VARCHAR (30) NOT NULL");
-
-$spip_index_dico_key = array(
-		"PRIMARY KEY"	=> "dico");
-
-$spip_versions = array (
-		"id_article"	=> "bigint(21) NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"titre_version"	=> "text DEFAULT '' NOT NULL",
-		"permanent"	=> "char(3) NOT NULL",
-		"champs"	=> "text NOT NULL");
-
-$spip_versions_key = array (
-		"PRIMARY KEY"	=> "id_article, id_version",
-		"KEY date"	=> "id_article, date",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_versions_fragments = array(
-		"id_fragment"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_min"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_max"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) NOT NULL",
-		"compress"	=> "tinyint NOT NULL",
-		"fragment"	=> "longblob NOT NULL");
-
-$spip_versions_fragments_key = array(
-	     "PRIMARY KEY"	=> "id_article, id_fragment, version_min");
-
-$spip_caches = array(
-		"fichier" => "char (64) NOT NULL",
-		"id" => "char (64) NOT NULL",
-		// i=par id, t=timer, x=suppression
-		"type" => "CHAR (1) DEFAULT 'i' NOT NULL",
-		"taille" => "integer DEFAULT '0' NOT NULL");
-$spip_caches_key = array(
-		"PRIMARY KEY"	=> "fichier, id",
-		"KEY fichier" => "fichier",
-		"KEY id" => "id");
-
-$spip_ortho_cache = array(
-	"lang" => "VARCHAR(10) NOT NULL",
-	"mot" => "VARCHAR(255) BINARY NOT NULL",
-	"ok" => "TINYINT NOT NULL",
-	"suggest" => "BLOB NOT NULL",
-	"maj" => "TIMESTAMP");
-$spip_ortho_cache_key = array(
-	"PRIMARY KEY" => "lang, mot",
-	"KEY maj" => "maj");
-
-$spip_ortho_dico = array(
-	"lang" => "VARCHAR(10) NOT NULL",
-	"mot" => "VARCHAR(255) BINARY NOT NULL",
-	"id_auteur" => "BIGINT UNSIGNED NOT NULL",
-	"maj" => "TIMESTAMP");
-$spip_ortho_dico_key = array(
-	"PRIMARY KEY" => "lang, mot");
-
-
-
-
-global $tables_auxiliaires;
-
-$tables_auxiliaires['spip_petitions'] = array(
-	'field' => &$spip_petitions,
-	'key' => &$spip_petitions_key
-);
-$tables_auxiliaires['spip_visites'] = array(
-	'field' => &$spip_visites,
-	'key' => &$spip_visites_key);
-$tables_auxiliaires['spip_visites_articles'] = array(
-	'field' => &$spip_visites_articles,
-	'key' => &$spip_visites_articles_key);
-$tables_auxiliaires['spip_referers'] = array(
-	'field' => &$spip_referers,
-	'key' => &$spip_referers_key);
-$tables_auxiliaires['spip_referers_articles'] = array(
-	'field' => &$spip_referers_articles,
-	'key' => &$spip_referers_articles_key);
-$tables_auxiliaires['spip_auteurs_articles'] = array(
-	'field' => &$spip_auteurs_articles,
-	'key' => &$spip_auteurs_articles_key);
-$tables_auxiliaires['spip_auteurs_rubriques'] = array(
-	'field' => &$spip_auteurs_rubriques,
-	'key' => &$spip_auteurs_rubriques_key);
-$tables_auxiliaires['spip_auteurs_messages'] = array(
-	'field' => &$spip_auteurs_messages,
-	'key' => &$spip_auteurs_messages_key);
-$tables_auxiliaires['spip_documents_articles'] = array(
-	'field' => &$spip_documents_articles,
-	'key' => &$spip_documents_articles_key);
-$tables_auxiliaires['spip_documents_rubriques'] = array(
-	'field' => &$spip_documents_rubriques,
-	'key' => &$spip_documents_rubriques_key);
-$tables_auxiliaires['spip_documents_breves'] = array(
-	'field' => &$spip_documents_breves,
-	'key' => &$spip_documents_breves_key);
-$tables_auxiliaires['spip_mots_articles'] = array(
-	'field' => &$spip_mots_articles,
-	'key' => &$spip_mots_articles_key);
-$tables_auxiliaires['spip_mots_breves'] = array(
-	'field' => &$spip_mots_breves,
-	'key' => &$spip_mots_breves_key);
-$tables_auxiliaires['spip_mots_rubriques'] = array(
-	'field' => &$spip_mots_rubriques,
-	'key' => &$spip_mots_rubriques_key);
-$tables_auxiliaires['spip_mots_syndic'] = array(
-	'field' => &$spip_mots_syndic,
-	'key' => &$spip_mots_syndic_key);
-$tables_auxiliaires['spip_mots_forum'] = array(
-	'field' => &$spip_mots_forum,
-	'key' => &$spip_mots_forum_key);
-$tables_auxiliaires['spip_mots_documents'] = array(
-	'field' => &$spip_mots_documents,
-	'key' => &$spip_mots_documents_key);
-$tables_auxiliaires['spip_meta'] = array(
-	'field' => &$spip_meta,
-	'key' => &$spip_meta_key);
-$tables_auxiliaires['spip_index'] = array(
-	'field' => &$spip_index,
-	'key' => &$spip_index_key);
-$tables_auxiliaires['spip_index_dico'] = array(
-	'field' => &$spip_index_dico,
-	'key' => &$spip_index_dico_key);
-$tables_auxiliaires['spip_versions'] = array(
-	'field' => &$spip_versions,
-	'key' => &$spip_versions_key);
-$tables_auxiliaires['spip_versions_fragments'] = array(
-	'field' => &$spip_versions_fragments,
-	'key' => &$spip_versions_fragments_key);
-$tables_auxiliaires['spip_caches'] = array(
-	'field' => &$spip_caches,
-	'key' => &$spip_caches_key);
-$tables_auxiliaires['spip_ortho_cache'] = array(
-	'field' => &$spip_ortho_cache,
-	'key' => &$spip_ortho_cache_key);
-$tables_auxiliaires['spip_ortho_dico'] = array(
-	'field' => &$spip_ortho_dico,
-	'key' => &$spip_ortho_dico_key);
-
-
-//
-// tableau des tables de jointures
-// Ex: gestion du critere {id_mot} dans la boucle(ARTICLES)
-
-global $tables_jointures;
-
-$tables_jointures['spip_articles'][]= 'mots_articles';
-$tables_jointures['spip_articles'][]= 'auteurs_articles';
-$tables_jointures['spip_articles'][]= 'documents_articles';
-$tables_jointures['spip_articles'][]= 'mots';
-$tables_jointures['spip_articles'][]= 'signatures';
-
-$tables_jointures['spip_auteurs'][]= 'auteurs_articles';
-$tables_jointures['spip_auteurs'][]= 'mots';
-
-$tables_jointures['spip_breves'][]= 'mots_breves';
-$tables_jointures['spip_breves'][]= 'documents_breves';
-$tables_jointures['spip_breves'][]= 'mots';
-
-$tables_jointures['spip_documents'][]= 'documents_articles';
-$tables_jointures['spip_documents'][]= 'documents_rubriques';
-$tables_jointures['spip_documents'][]= 'documents_breves';
-$tables_jointures['spip_documents'][]= 'mots_documents';
-$tables_jointures['spip_documents'][]= 'types_documents';
-$tables_jointures['spip_documents'][]= 'mots';
-
-$tables_jointures['spip_forum'][]= 'mots_forum';
-$tables_jointures['spip_forum'][]= 'mots';
-
-$tables_jointures['spip_rubriques'][]= 'mots_rubriques';
-$tables_jointures['spip_rubriques'][]= 'documents_rubriques';
-$tables_jointures['spip_rubriques'][]= 'mots';
-
-$tables_jointures['spip_syndic'][]= 'mots_syndic';
-$tables_jointures['spip_syndic'][]= 'mots';
-
-$tables_jointures['spip_syndic_articles'][]= 'syndic';
-$tables_jointures['spip_syndic_articles'][]= 'mots';
-
-$tables_jointures['spip_mots'][]= 'mots_articles';
-$tables_jointures['spip_mots'][]= 'mots_breves';
-$tables_jointures['spip_mots'][]= 'mots_forum';
-$tables_jointures['spip_mots'][]= 'mots_rubriques';
-$tables_jointures['spip_mots'][]= 'mots_syndic';
-$tables_jointures['spip_mots'][]= 'mots_documents';
-
-$tables_jointures['spip_groupes_mots'][]= 'mots';
-	
-?>
\ No newline at end of file
diff --git a/ecrire/maj/vieille_base/1915/create.php b/ecrire/maj/vieille_base/1915/create.php
deleted file mode 100644
index 8df352267a..0000000000
--- a/ecrire/maj/vieille_base/1915/create.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2006                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-include_spip('maj/vieille_base/1915/serial');
-include_spip('maj/vieille_base/1915/auxiliaires');
-include_spip('maj/vieille_base/1915/typedoc');
-
-function maj_vieille_base_1915_create() {
-  global $tables_principales, $tables_auxiliaires, $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-	// ne pas revenir plusieurs fois (si, au contraire, il faut pouvoir
-	// le faire car certaines mises a jour le demandent explicitement)
-	# static $vu = false;
-	# if ($vu) return; else $vu = true;
-
-	foreach($tables_principales as $k => $v)
-		spip_create_vieille_table($k, $v['field'], $v['key'], true);
-
-	foreach($tables_auxiliaires as $k => $v)
-		spip_create_vieille_table($k, $v['field'], $v['key'], false);
-
-	foreach($tables_images as $k => $v)
-		spip_query("INSERT IGNORE INTO spip_types_documents (extension, inclus, titre, id_type) VALUES ('$k', 'image', '" .
-			      (is_numeric($v) ?
-			       (strtoupper($k) . "', $v") :
-			       "$v', 0") .
-			      ")");
-
-	foreach($tables_sequences as $k => $v)
-		spip_query("INSERT IGNORE INTO spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'embed')");
-
-	foreach($tables_documents as $k => $v)
-		spip_query("INSERT IGNORE INTO spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'non')");
-
-	foreach ($tables_mime as $extension => $type_mime)
-	  spip_query("UPDATE spip_types_documents
-		SET mime_type='$type_mime' WHERE extension='$extension'");
-}
-
-?>
\ No newline at end of file
diff --git a/ecrire/maj/vieille_base/1915/serial.php b/ecrire/maj/vieille_base/1915/serial.php
deleted file mode 100644
index aa52d30976..0000000000
--- a/ecrire/maj/vieille_base/1915/serial.php
+++ /dev/null
@@ -1,387 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2006                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-
-$spip_articles = array(
-		"id_article"	=> "bigint(21) NOT NULL",
-		"surtitre"	=> "text NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"soustitre"	=> "text NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"chapo"	=> "mediumtext NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"ps"	=> "mediumtext NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"date_redac"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"visites"	=> "INTEGER DEFAULT '0' NOT NULL",
-		"referers"	=> "INTEGER DEFAULT '0' NOT NULL",
-		"popularite"	=> "DOUBLE DEFAULT '0' NOT NULL",
-		"accepter_forum"	=> "CHAR(3) NOT NULL",
-		"date_modif"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"		=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"id_trad"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"extra"		=> "longblob NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"nom_site"	=> "tinytext NOT NULL",
-		"url_site"	=> "VARCHAR(255) NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL");
-
-$spip_articles_key = array(
-		"PRIMARY KEY"		=> "id_article",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY id_trad"		=> "id_trad",
-		"KEY lang"			=> "lang",
-		"KEY statut"		=> "statut, date",
-		"KEY url_site"		=> "url_site",
-		"KEY date_modif"	=> "date_modif",
-		"KEY idx"			=> "idx",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_auteurs = array(
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"nom"	=> "text NOT NULL",
-		"bio"	=> "text NOT NULL",
-		"email"	=> "tinytext NOT NULL",
-		"nom_site"	=> "tinytext NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"login"	=> "VARCHAR(255) BINARY NOT NULL",
-		"pass"	=> "tinytext NOT NULL",
-		"low_sec"	=> "tinytext NOT NULL",
-		"statut"	=> "VARCHAR(255) NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"pgp"	=> "BLOB NOT NULL",
-		"htpass"	=> "tinyblob NOT NULL",
-		"en_ligne"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"imessage"	=> "VARCHAR(3) NOT NULL",
-		"messagerie"	=> "VARCHAR(3) NOT NULL",
-		"alea_actuel"	=> "tinytext NOT NULL",
-		"alea_futur"	=> "tinytext NOT NULL",
-		"prefs"	=> "tinytext NOT NULL",
-		"cookie_oubli"	=> "tinytext NOT NULL",
-		"source"	=> "VARCHAR(10) DEFAULT 'spip' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"extra"	=> "longblob NULL");
-
-$spip_auteurs_key = array(
-		"PRIMARY KEY"	=> "id_auteur",
-		"KEY login"	=> "login",
-		"KEY statut"	=> "statut",
-		"KEY lang"	=> "lang",
-		"KEY idx"	=> "idx",
-		"KEY en_ligne"	=> "en_ligne",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_breves = array(
-		"id_breve"	=> "bigint(21) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"lien_titre"	=> "text NOT NULL",
-		"lien_url"	=> "text NOT NULL",
-		"statut"	=> "varchar(6) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"maj"	=> "TIMESTAMP",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL");
-
-$spip_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve",
-		"KEY idx"	=> "idx",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_messages = array(
-		"id_message"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"type"	=> "varchar(6) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_fin"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"rv"	=> "varchar(3) NOT NULL",
-		"statut"	=> "varchar(6) NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_messages_key = array(
-		"PRIMARY KEY"	=> "id_message",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_mots = array(
-		"id_mot"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"type"	=> "text NOT NULL",
-		"extra"	=> "longblob NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_mots_key = array(
-		"PRIMARY KEY"	=> "id_mot",
-		"KEY idx"	=> "idx",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_groupes_mots = array(
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"unseul"	=> "varchar(3) NOT NULL",
-		"obligatoire"	=> "varchar(3) NOT NULL",
-		"articles"	=> "varchar(3) NOT NULL",
-		"breves"	=> "varchar(3) NOT NULL",
-		"rubriques"	=> "varchar(3) NOT NULL",
-		"syndic"	=> "varchar(3) NOT NULL",
-		"minirezo"	=> "varchar(3) NOT NULL",
-		"comite"	=> "varchar(3) NOT NULL",
-		"forum"	=> "varchar(3) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_groupes_mots_key = array(
-		"PRIMARY KEY"	=> "id_groupe");
-
-$spip_rubriques = array(
-		"id_rubrique"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"id_import"	=> "BIGINT DEFAULT '0'",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"statut_tmp"	=> "VARCHAR(10) NOT NULL",
-		"date_tmp"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL"
-		);
-
-$spip_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique",
-		"KEY lang"	=> "lang",
-		"KEY idx"	=> "idx",
-		"KEY id_parent"	=> "id_parent",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_documents = array(
-		"id_document"	=> "bigint(21) NOT NULL",
-		"id_vignette"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_type"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"fichier"	=> "varchar(255) NOT NULL",
-		"taille"	=> "integer NOT NULL",
-		"largeur"	=> "integer NOT NULL",
-		"hauteur"	=> "integer NOT NULL",
-		"mode"	=> "ENUM('vignette', 'document') NOT NULL",
-		"inclus"	=> "VARCHAR(3) DEFAULT 'non'",
-		"distant"	=> "VARCHAR(3) DEFAULT 'non'",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_documents_key = array(
-		"PRIMARY KEY"	=> "id_document",
-		"KEY id_vignette"	=> "id_vignette",
-		"KEY mode"	=> "mode",
-		"KEY id_type"	=> "id_type");
-
-$spip_types_documents = array(
-		"id_type"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"extension"	=> "varchar(10) NOT NULL",
-		"mime_type"	=> "varchar(100) NOT NULL",
-		"inclus"	=> "ENUM('non', 'image', 'embed') NOT NULL DEFAULT 'non'",
-		"upload"	=> "ENUM('oui', 'non') NOT NULL DEFAULT 'oui'",
-		"maj"	=> "TIMESTAMP");
-
-$spip_types_documents_key = array(
-		"PRIMARY KEY"	=> "id_type",
-		"UNIQUE extension"	=> "extension",
-		"KEY inclus"	=> "inclus");
-
-$spip_syndic = array(
-		"id_syndic"	=> "bigint(21) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"nom_site"	=> "blob NOT NULL",
-		"url_site"	=> "blob NOT NULL",
-		"url_syndic"	=> "blob NOT NULL",
-		"descriptif"	=> "blob NOT NULL",
-		"url_propre"	=> "VARCHAR(255) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"syndication"	=> "VARCHAR(3) NOT NULL",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_syndic"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_index"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"extra"			=> "longblob NULL",
-		"moderation"	=> "VARCHAR(3) DEFAULT 'non'",
-		"miroir"	=> "VARCHAR(3) DEFAULT 'non'",
-		"oubli"	=> "VARCHAR(3) DEFAULT 'non'",
-		"resume"	=> "VARCHAR(3) DEFAULT 'oui'"
-);
-
-$spip_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY idx"		=> "idx",
-		"KEY statut"	=> "statut, date_syndic",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_syndic_articles = array(
-		"id_syndic_article"	=> "bigint(21) NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"url"	=> "VARCHAR(255) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lesauteurs"	=> "text NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"descriptif"	=> "blob NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"url_source" => "TINYTEXT DEFAULT '' NOT NULL",
-		"source" => "TINYTEXT DEFAULT '' NOT NULL",
-		"tags" => "TEXT DEFAULT '' NOT NULL");
-
-$spip_syndic_articles_key = array(
-		"PRIMARY KEY"	=> "id_syndic_article",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY statut"	=> "statut",
-		"KEY url"	=> "url");
-
-$spip_forum = array(
-		"id_forum"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_thread"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "mediumtext NOT NULL",
-		"auteur"	=> "text NOT NULL",
-		"email_auteur"	=> "text NOT NULL",
-		"nom_site"	=> "text NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"statut"	=> "varchar(8) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"ip"	=> "varchar(16)",
-		"maj"	=> "TIMESTAMP",
-		"id_auteur"	=> "BIGINT DEFAULT '0' NOT NULL",
-		"id_message"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum",
-		"KEY id_parent"	=> "id_parent",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_article"	=> "id_article",
-		"KEY id_breve"	=> "id_breve",
-		"KEY id_message"	=> "id_message",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY idx"	=> "idx",
-		"KEY statut"	=> "statut, date_heure");
-
-$spip_signatures = array(
-		"id_signature"	=> "bigint(21) NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_time"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"nom_email"	=> "text NOT NULL",
-		"ad_email"	=> "text NOT NULL",
-		"nom_site"	=> "text NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"message"	=> "mediumtext NOT NULL",
-		"statut"	=> "varchar(10) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_signatures_key = array(
-		"PRIMARY KEY"	=> "id_signature",
-		"KEY id_article"	=> "id_article",
-		"KEY idx"		=> "idx",
-		"KEY statut" => "statut");
-
-
-$spip_ajax_fonc = array(
-		"id_ajax_fonc" => "bigint(21) NOT NULL",
-		"id_auteur" => "bigint(21) NOT NULL",
-		"variables" => "text NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL" );
-
-$spip_ajax_fonc_key = array(
-		"PRIMARY KEY"		=> "id_ajax_fonc",
-		"KEY `hash`"	=> "`hash`");
-
-
-global $tables_principales;
-
-/// Attention: mes_fonctions peut avoir deja defini cette variable
-/// il faut donc rajouter, mais pas reinitialiser
-
-$tables_principales['spip_articles'] =
-	array('field' => &$spip_articles, 'key' => &$spip_articles_key);
-$tables_principales['spip_auteurs']  =
-	array('field' => &$spip_auteurs, 'key' => &$spip_auteurs_key);
-$tables_principales['spip_breves']   =
-	array('field' => &$spip_breves, 'key' => &$spip_breves_key);
-$tables_principales['spip_messages'] =
-	array('field' => &$spip_messages, 'key' => &$spip_messages_key);
-$tables_principales['spip_mots']     =
-	array('field' => &$spip_mots, 'key' => &$spip_mots_key);
-$tables_principales['spip_groupes_mots'] =
-	array('field' => &$spip_groupes_mots, 'key' => &$spip_groupes_mots_key);
-$tables_principales['spip_rubriques'] =
-	array('field' => &$spip_rubriques, 'key' => &$spip_rubriques_key);
-$tables_principales['spip_documents'] =
-	array('field' => &$spip_documents,  'key' => &$spip_documents_key);
-$tables_principales['spip_types_documents']	=
-	array('field' => &$spip_types_documents, 'key' => &$spip_types_documents_key);
-$tables_principales['spip_syndic'] =
-	array('field' => &$spip_syndic, 'key' => &$spip_syndic_key);
-$tables_principales['spip_syndic_articles']	=
-	array('field' => &$spip_syndic_articles, 'key' => &$spip_syndic_articles_key);
-$tables_principales['spip_forum'] =
-	array('field' => &$spip_forum,	'key' => &$spip_forum_key);
-$tables_principales['spip_signatures'] =
-	array('field' => &$spip_signatures, 'key' => &$spip_signatures_key);
-$tables_principales['spip_ajax_fonc'] =
-	array('field' => &$spip_ajax_fonc, 'key' => &$spip_ajax_fonc_key);
-
-?>
diff --git a/ecrire/maj/vieille_base/1915/typedoc.php b/ecrire/maj/vieille_base/1915/typedoc.php
deleted file mode 100644
index 7defd6facd..0000000000
--- a/ecrire/maj/vieille_base/1915/typedoc.php
+++ /dev/null
@@ -1,197 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2006                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-//
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-## cette API ne sait pas gerer les aliases ; a revoir...
-
-global $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-$tables_images = array(
-		       // Images reconnues par PHP
-		       'jpg' => 1, 
-		       'png' => 2, 
-		       'gif' => 3,
-
-		       // Autres images (peuvent utiliser le tag <img>)
-		       'bmp' => 'BMP',
-		       'psd' => 'Photoshop',
-		       'tif' => 'TIFF'
-		       );
-
-// Multimedia (peuvent utiliser le tag <embed>)
-
-$tables_sequences = array(
-			  'aiff' => 'AIFF',
-			  'asf' => 'Windows Media',
-			  'avi' => 'Windows Media',
-			  'flv' => 'Flash Video',
-			  'mid' => 'Midi',
-			  'mng' => 'MNG',
-			  'mov' => 'QuickTime',
-			  'mp3' => 'MP3',
-			  'mpg' => 'MPEG',
-			  'ogg' => 'Ogg',
-			  'qt' => 'QuickTime',
-			  'ra' => 'RealAudio',
-			  'ram' => 'RealAudio',
-			  'rm' => 'RealAudio',
-			  'swf' => 'Flash',
-			  'wav' => 'WAV',
-			  'wmv' => 'Windows Media',
-			  'svg' => 'Scalable Vector Graphics'
-			  );
-
-// Documents varies
-$tables_documents = array(
-			  'abw' => 'Abiword',
-			  'ai' => 'Adobe Illustrator',
-			  'bz2' => 'BZip',
-			  'bin' => 'Binary Data',
-			  'blend' => 'Blender',
-			  'c' => 'C source',
-			  'css' => 'Cascading Style Sheet',
-			  'deb' => 'Debian',
-			  'doc' => 'Word',
-			  'djvu' => 'DjVu',
-			  'dvi' => 'LaTeX DVI',
-			  'eps' => 'PostScript',
-			  'gz' => 'GZ',
-			  'h' => 'C header',
-			  'html' => 'HTML',
-			  'pas' => 'Pascal',
-			  'pdf' => 'PDF',
-			  'pgn' => 'Portable Game Notation',
-			  'ppt' => 'PowerPoint',
-			  'ps' => 'PostScript',
-			  'rpm' => 'RedHat/Mandrake/SuSE',
-			  'rtf' => 'RTF',
-			  'sdd' => 'StarOffice',
-			  'sdw' => 'StarOffice',
-			  'sit' => 'Stuffit',
-			  'sxc' => 'OpenOffice Calc',
-			  'sxi' => 'OpenOffice Impress',
-			  'sxw' => 'OpenOffice',
-			  'tex' => 'LaTeX',
-			  'tgz' => 'TGZ',
-			  'torrent' => 'BitTorrent',
-			  'ttf' => 'TTF Font',
-			  'txt' => 'texte',
-			  'xcf' => 'GIMP multi-layer',
-			  'xls' => 'Excel',
-			  'xml' => 'XML',
-			  'zip' => 'Zip',
-
-			// open document format
-			'odt' => 'opendocument text',
-			'ods' => 'opendocument spreadsheet',
-			'odp' => 'opendocument presentation',
-			'odg' => 'opendocument graphics',
-			'odc' => 'opendocument chart',
-			'odf' => 'opendocument formula',
-			'odb' => 'opendocument database',
-			'odi' => 'opendocument image',
-			'odm' => 'opendocument text-master',
-			'ott' => 'opendocument text-template',
-			'ots' => 'opendocument spreadsheet-template',
-			'otp' => 'opendocument presentation-template',
-			'otg' => 'opendocument graphics-template'
-			  );
-
-$tables_mime = array(
-		// Images reconnues par PHP
-		'jpg'=>'image/jpeg',
-		'png'=>'image/png',
-		'gif'=>'image/gif',
-
-		// Autres images (peuvent utiliser le tag <img>)
-		'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
-		'psd'=>'image/x-photoshop',	// pas IANA
-		'tif'=>'image/tiff',
-
-		// Multimedia (peuvent utiliser le tag <embed>)
-		'aiff'=>'audio/x-aiff',
-		'asf'=>'video/x-ms-asf',
-		'avi'=>'video/x-msvideo',
-		'flv' => 'video/x-flv',
-		'mid'=>'audio/midi',
-		'mng'=>'video/x-mng',
-		'mov'=>'video/quicktime',
-		'mp3'=>'audio/mpeg',
-		'mpg'=>'video/mpeg',
-		'ogg'=>'application/ogg',
-		'qt' =>'video/quicktime',
-		'ra' =>'audio/x-pn-realaudio',
-		'ram'=>'audio/x-pn-realaudio',
-		'rm' =>'audio/x-pn-realaudio',
-		'swf'=>'application/x-shockwave-flash',
-		'wav'=>'audio/x-wav',
-		'wmv'=>'video/x-ms-wmv',
-		'svg'=>'image/svg+xml',
-
-		// Documents varies
-		'ai' =>'application/illustrator',
-		'abw' =>'application/abiword',
-		'bin' => 'application/octet-stream', # le tout-venant
-		'blend' => 'application/x-blender',
-		'bz2'=>'application/x-bzip2',
-		'c'  =>'text/x-csrc',
-		'css'=>'text/css',
-		'deb'=>'application/x-debian-package',
-		'doc'=>'application/msword',
-		'djvu'=>'image/vnd.djvu',
-		'dvi'=>'application/x-dvi',
-		'eps'=>'application/postscript',
-		'gz' =>'application/x-gzip',
-		'h'  =>'text/x-chdr',
-		'html'=>'text/html',
-		'pas'=>'text/x-pascal',
-		'pdf'=>'application/pdf',
-		'pgn' =>'application/x-chess-pgn',
-		'ppt'=>'application/vnd.ms-powerpoint',
-		'ps' =>'application/postscript',
-		'rpm'=>'application/x-redhat-package-manager',
-		'rtf'=>'application/rtf',
-		'sdd'=>'application/vnd.stardivision.impress',
-		'sdw'=>'application/vnd.stardivision.writer',
-		'sit'=>'application/x-stuffit',
-		'sxc'=>'application/vnd.sun.xml.calc',
-		'sxi'=>'application/vnd.sun.xml.impress',
-		'sxw'=>'application/vnd.sun.xml.writer',
-		'tex'=>'text/x-tex',
-		'tgz'=>'application/x-gtar',
-		'torrent' => 'application/x-bittorrent',
-		'ttf'=>'application/x-font-ttf',
-		'txt'=>'text/plain',
-		'xcf'=>'application/x-xcf',
-		'xls'=>'application/vnd.ms-excel',
-		'xml'=>'application/xml',
-		'zip'=>'application/zip',
-
-		// open document format
-		'odt' => 'application/vnd.oasis.opendocument.text',
-		'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
-		'odp' => 'application/vnd.oasis.opendocument.presentation',
-		'odg' => 'application/vnd.oasis.opendocument.graphics',
-		'odc' => 'application/vnd.oasis.opendocument.chart',
-		'odf' => 'application/vnd.oasis.opendocument.formula',
-		'odb' => 'application/vnd.oasis.opendocument.database',
-		'odi' => 'application/vnd.oasis.opendocument.image',
-		'odm' => 'application/vnd.oasis.opendocument.text-master',
-		'ott' => 'application/vnd.oasis.opendocument.text-template',
-		'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
-		'otp' => 'application/vnd.oasis.opendocument.presentation-template',
-		'otg' => 'application/vnd.oasis.opendocument.graphics-template'
-	);
-?>
diff --git a/ecrire/maj/vieille_base/1917/auxiliaires.php b/ecrire/maj/vieille_base/1917/auxiliaires.php
deleted file mode 100644
index 3f2aaade01..0000000000
--- a/ecrire/maj/vieille_base/1917/auxiliaires.php
+++ /dev/null
@@ -1,378 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2006                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-$spip_petitions = array(
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"email_unique"	=> "CHAR (3) NOT NULL",
-		"site_obli"	=> "CHAR (3) NOT NULL",
-		"site_unique"	=> "CHAR (3) NOT NULL",
-		"message"	=> "CHAR (3) NOT NULL",
-		"texte"	=> "LONGBLOB NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_petitions_key = array(
-		"PRIMARY KEY"	=> "id_article");
-
-$spip_visites = array(
-		"date"	=> "DATE NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_key = array(
-		"PRIMARY KEY"	=> "date");
-
-$spip_visites_articles = array(
-		"date"	=> "DATE NOT NULL",
-		"id_article"	=> "INT UNSIGNED NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_articles_key = array(
-		"PRIMARY KEY"	=> "date, id_article");
-
-$spip_referers = array(
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"visites_jour"	=> "INT UNSIGNED NOT NULL",
-		"visites_veille"=> "INT UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_key = array(
-		"PRIMARY KEY"	=> "referer_md5");
-
-$spip_referers_articles = array(
-		"id_article"	=> "INT UNSIGNED NOT NULL",
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, referer_md5",
-		"KEY referer_md5"	=> "referer_md5");
-
-$spip_auteurs_articles = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_articles_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_article",
-		"KEY id_article"	=> "id_article");
-
-$spip_auteurs_rubriques = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_rubrique",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_auteurs_messages = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_message"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"vu"		=> "CHAR (3) NOT NULL");
-
-$spip_auteurs_messages_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_message",
-		"KEY id_message"	=> "id_message");
-
-
-$spip_documents_articles = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_articles_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_article"	=> "id_article");
-
-$spip_documents_rubriques = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_rubriques_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_documents_breves = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_breves_key = array(
-		"KEY id_document"	=> "id_document",
-		"KEY id_breve"	=> "id_breve");
-
-$spip_mots_articles = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_breves = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_rubriques = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_syndic = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_forum = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_forum"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_documents = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_documents_key = array(
-		"PRIMARY KEY"	=> "id_document, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_meta = array(
-		"nom"	=> "VARCHAR (255) NOT NULL",
-		"valeur"	=> "text DEFAULT ''",
-		"maj"	=> "TIMESTAMP");
-
-$spip_meta_key = array(
-		"PRIMARY KEY"	=> "nom");
-
-$spip_index = array(
- 		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
- 		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_objet"	=> "INT UNSIGNED NOT NULL",
-		"id_table"	=> "TINYINT UNSIGNED NOT NULL"	);
-
-$spip_index_key = array(
- 		"KEY `hash`"	=> "`hash`",
-		"KEY id_objet"	=> "id_objet",
-		"KEY id_table"	=> "id_table");
-
-$spip_index_dico = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"dico"		=> "VARCHAR (30) NOT NULL");
-
-$spip_index_dico_key = array(
-		"PRIMARY KEY"	=> "dico");
-
-$spip_versions = array (
-		"id_article"	=> "bigint(21) NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"titre_version"	=> "text DEFAULT '' NOT NULL",
-		"permanent"	=> "char(3) NOT NULL",
-		"champs"	=> "text NOT NULL");
-
-$spip_versions_key = array (
-		"PRIMARY KEY"	=> "id_article, id_version",
-		"KEY date"	=> "id_article, date",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_versions_fragments = array(
-		"id_fragment"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_min"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_max"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) NOT NULL",
-		"compress"	=> "tinyint NOT NULL",
-		"fragment"	=> "longblob NOT NULL");
-
-$spip_versions_fragments_key = array(
-	     "PRIMARY KEY"	=> "id_article, id_fragment, version_min");
-
-$spip_caches = array(
-		"fichier" => "char (64) NOT NULL",
-		"id" => "char (64) NOT NULL",
-		// i=par id, t=timer, x=suppression
-		"type" => "CHAR (1) DEFAULT 'i' NOT NULL",
-		"taille" => "integer DEFAULT '0' NOT NULL");
-$spip_caches_key = array(
-		"PRIMARY KEY"	=> "fichier, id",
-		"KEY fichier" => "fichier",
-		"KEY id" => "id");
-
-$spip_ortho_cache = array(
-	"lang" => "VARCHAR(10) NOT NULL",
-	"mot" => "VARCHAR(255) BINARY NOT NULL",
-	"ok" => "TINYINT NOT NULL",
-	"suggest" => "BLOB NOT NULL",
-	"maj" => "TIMESTAMP");
-$spip_ortho_cache_key = array(
-	"PRIMARY KEY" => "lang, mot",
-	"KEY maj" => "maj");
-
-$spip_ortho_dico = array(
-	"lang" => "VARCHAR(10) NOT NULL",
-	"mot" => "VARCHAR(255) BINARY NOT NULL",
-	"id_auteur" => "BIGINT UNSIGNED NOT NULL",
-	"maj" => "TIMESTAMP");
-$spip_ortho_dico_key = array(
-	"PRIMARY KEY" => "lang, mot");
-
-
-
-
-global $tables_auxiliaires;
-
-$tables_auxiliaires['spip_petitions'] = array(
-	'field' => &$spip_petitions,
-	'key' => &$spip_petitions_key
-);
-$tables_auxiliaires['spip_visites'] = array(
-	'field' => &$spip_visites,
-	'key' => &$spip_visites_key);
-$tables_auxiliaires['spip_visites_articles'] = array(
-	'field' => &$spip_visites_articles,
-	'key' => &$spip_visites_articles_key);
-$tables_auxiliaires['spip_referers'] = array(
-	'field' => &$spip_referers,
-	'key' => &$spip_referers_key);
-$tables_auxiliaires['spip_referers_articles'] = array(
-	'field' => &$spip_referers_articles,
-	'key' => &$spip_referers_articles_key);
-$tables_auxiliaires['spip_auteurs_articles'] = array(
-	'field' => &$spip_auteurs_articles,
-	'key' => &$spip_auteurs_articles_key);
-$tables_auxiliaires['spip_auteurs_rubriques'] = array(
-	'field' => &$spip_auteurs_rubriques,
-	'key' => &$spip_auteurs_rubriques_key);
-$tables_auxiliaires['spip_auteurs_messages'] = array(
-	'field' => &$spip_auteurs_messages,
-	'key' => &$spip_auteurs_messages_key);
-$tables_auxiliaires['spip_documents_articles'] = array(
-	'field' => &$spip_documents_articles,
-	'key' => &$spip_documents_articles_key);
-$tables_auxiliaires['spip_documents_rubriques'] = array(
-	'field' => &$spip_documents_rubriques,
-	'key' => &$spip_documents_rubriques_key);
-$tables_auxiliaires['spip_documents_breves'] = array(
-	'field' => &$spip_documents_breves,
-	'key' => &$spip_documents_breves_key);
-$tables_auxiliaires['spip_mots_articles'] = array(
-	'field' => &$spip_mots_articles,
-	'key' => &$spip_mots_articles_key);
-$tables_auxiliaires['spip_mots_breves'] = array(
-	'field' => &$spip_mots_breves,
-	'key' => &$spip_mots_breves_key);
-$tables_auxiliaires['spip_mots_rubriques'] = array(
-	'field' => &$spip_mots_rubriques,
-	'key' => &$spip_mots_rubriques_key);
-$tables_auxiliaires['spip_mots_syndic'] = array(
-	'field' => &$spip_mots_syndic,
-	'key' => &$spip_mots_syndic_key);
-$tables_auxiliaires['spip_mots_forum'] = array(
-	'field' => &$spip_mots_forum,
-	'key' => &$spip_mots_forum_key);
-$tables_auxiliaires['spip_mots_documents'] = array(
-	'field' => &$spip_mots_documents,
-	'key' => &$spip_mots_documents_key);
-$tables_auxiliaires['spip_meta'] = array(
-	'field' => &$spip_meta,
-	'key' => &$spip_meta_key);
-$tables_auxiliaires['spip_index'] = array(
-	'field' => &$spip_index,
-	'key' => &$spip_index_key);
-$tables_auxiliaires['spip_index_dico'] = array(
-	'field' => &$spip_index_dico,
-	'key' => &$spip_index_dico_key);
-$tables_auxiliaires['spip_versions'] = array(
-	'field' => &$spip_versions,
-	'key' => &$spip_versions_key);
-$tables_auxiliaires['spip_versions_fragments'] = array(
-	'field' => &$spip_versions_fragments,
-	'key' => &$spip_versions_fragments_key);
-$tables_auxiliaires['spip_caches'] = array(
-	'field' => &$spip_caches,
-	'key' => &$spip_caches_key);
-$tables_auxiliaires['spip_ortho_cache'] = array(
-	'field' => &$spip_ortho_cache,
-	'key' => &$spip_ortho_cache_key);
-$tables_auxiliaires['spip_ortho_dico'] = array(
-	'field' => &$spip_ortho_dico,
-	'key' => &$spip_ortho_dico_key);
-	
-
-//
-// tableau des tables de jointures
-// Ex: gestion du critere {id_mot} dans la boucle(ARTICLES)
-
-global $tables_jointures;
-
-$tables_jointures['spip_articles'][]= 'mots_articles';
-$tables_jointures['spip_articles'][]= 'auteurs_articles';
-$tables_jointures['spip_articles'][]= 'documents_articles';
-$tables_jointures['spip_articles'][]= 'mots';
-$tables_jointures['spip_articles'][]= 'signatures';
-
-$tables_jointures['spip_auteurs'][]= 'auteurs_articles';
-$tables_jointures['spip_auteurs'][]= 'mots';
-
-$tables_jointures['spip_breves'][]= 'mots_breves';
-$tables_jointures['spip_breves'][]= 'documents_breves';
-$tables_jointures['spip_breves'][]= 'mots';
-
-$tables_jointures['spip_documents'][]= 'documents_articles';
-$tables_jointures['spip_documents'][]= 'documents_rubriques';
-$tables_jointures['spip_documents'][]= 'documents_breves';
-$tables_jointures['spip_documents'][]= 'mots_documents';
-$tables_jointures['spip_documents'][]= 'types_documents';
-$tables_jointures['spip_documents'][]= 'mots';
-
-$tables_jointures['spip_forum'][]= 'mots_forum';
-$tables_jointures['spip_forum'][]= 'mots';
-
-$tables_jointures['spip_rubriques'][]= 'mots_rubriques';
-$tables_jointures['spip_rubriques'][]= 'documents_rubriques';
-$tables_jointures['spip_rubriques'][]= 'mots';
-
-$tables_jointures['spip_syndic'][]= 'mots_syndic';
-$tables_jointures['spip_syndic'][]= 'mots';
-
-$tables_jointures['spip_syndic_articles'][]= 'syndic';
-$tables_jointures['spip_syndic_articles'][]= 'mots';
-
-$tables_jointures['spip_mots'][]= 'mots_articles';
-$tables_jointures['spip_mots'][]= 'mots_breves';
-$tables_jointures['spip_mots'][]= 'mots_forum';
-$tables_jointures['spip_mots'][]= 'mots_rubriques';
-$tables_jointures['spip_mots'][]= 'mots_syndic';
-$tables_jointures['spip_mots'][]= 'mots_documents';
-
-$tables_jointures['spip_groupes_mots'][]= 'mots';
-
-?>
\ No newline at end of file
diff --git a/ecrire/maj/vieille_base/1917/create.php b/ecrire/maj/vieille_base/1917/create.php
deleted file mode 100644
index 2ff69404df..0000000000
--- a/ecrire/maj/vieille_base/1917/create.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2006                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-include_spip('maj/vieille_base/1917/serial');
-include_spip('maj/vieille_base/1917/auxiliaires');
-include_spip('maj/vieille_base/1917/typedoc');
-
-function maj_vieille_base_1917_create() {
-  global $tables_principales, $tables_auxiliaires, $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-	// ne pas revenir plusieurs fois (si, au contraire, il faut pouvoir
-	// le faire car certaines mises a jour le demandent explicitement)
-	# static $vu = false;
-	# if ($vu) return; else $vu = true;
-
-	foreach($tables_principales as $k => $v)
-		spip_create_vieille_table($k, $v['field'], $v['key'], true);
-
-	foreach($tables_auxiliaires as $k => $v)
-		spip_create_vieille_table($k, $v['field'], $v['key'], false);
-
-	foreach($tables_images as $k => $v)
-		spip_query("INSERT IGNORE INTO spip_types_documents (extension, inclus, titre, id_type) VALUES ('$k', 'image', '" .
-			      (is_numeric($v) ?
-			       (strtoupper($k) . "', $v") :
-			       "$v', 0") .
-			      ")");
-
-	foreach($tables_sequences as $k => $v)
-		spip_query("INSERT IGNORE INTO spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'embed')");
-
-	foreach($tables_documents as $k => $v)
-		spip_query("INSERT IGNORE INTO spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'non')");
-
-	foreach ($tables_mime as $extension => $type_mime)
-	  spip_query("UPDATE spip_types_documents
-		SET mime_type='$type_mime' WHERE extension='$extension'");
-}
-/*
-// http://doc.spip.org/@stripslashes_base
-function stripslashes_base($table, $champs) {
-	$modifs = '';
-	reset($champs);
-	while (list(, $champ) = each($champs)) {
-		$modifs[] = $champ . '=REPLACE(REPLACE(' .$champ. ',"\\\\\'", "\'"), \'\\\\"\', \'"\')';
-	}
-	spip_query("UPDATE $table SET ".join(',', $modifs));
-
-}*/
-
-?>
\ No newline at end of file
diff --git a/ecrire/maj/vieille_base/1917/serial.php b/ecrire/maj/vieille_base/1917/serial.php
deleted file mode 100644
index 767d0973df..0000000000
--- a/ecrire/maj/vieille_base/1917/serial.php
+++ /dev/null
@@ -1,386 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2006                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-
-$spip_articles = array(
-		"id_article"	=> "bigint(21) NOT NULL",
-		"surtitre"	=> "text NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"soustitre"	=> "text NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"chapo"	=> "mediumtext NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"ps"	=> "mediumtext NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"date_redac"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"visites"	=> "INTEGER DEFAULT '0' NOT NULL",
-		"referers"	=> "INTEGER DEFAULT '0' NOT NULL",
-		"popularite"	=> "DOUBLE DEFAULT '0' NOT NULL",
-		"accepter_forum"	=> "CHAR(3) NOT NULL",
-		"date_modif"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"		=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"id_trad"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"extra"		=> "longblob NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"nom_site"	=> "tinytext NOT NULL",
-		"url_site"	=> "VARCHAR(255) NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL");
-
-$spip_articles_key = array(
-		"PRIMARY KEY"		=> "id_article",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY id_trad"		=> "id_trad",
-		"KEY lang"			=> "lang",
-		"KEY statut"		=> "statut, date",
-		"KEY url_site"		=> "url_site",
-		"KEY date_modif"	=> "date_modif",
-		"KEY idx"			=> "idx",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_auteurs = array(
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"nom"	=> "text NOT NULL",
-		"bio"	=> "text NOT NULL",
-		"email"	=> "tinytext NOT NULL",
-		"nom_site"	=> "tinytext NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"login"	=> "VARCHAR(255) BINARY NOT NULL",
-		"pass"	=> "tinytext NOT NULL",
-		"low_sec"	=> "tinytext NOT NULL",
-		"statut"	=> "VARCHAR(255) NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"pgp"	=> "BLOB NOT NULL",
-		"htpass"	=> "tinyblob NOT NULL",
-		"en_ligne"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"imessage"	=> "VARCHAR(3) NOT NULL",
-		"messagerie"	=> "VARCHAR(3) NOT NULL",
-		"alea_actuel"	=> "tinytext NOT NULL",
-		"alea_futur"	=> "tinytext NOT NULL",
-		"prefs"	=> "tinytext NOT NULL",
-		"cookie_oubli"	=> "tinytext NOT NULL",
-		"source"	=> "VARCHAR(10) DEFAULT 'spip' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"extra"	=> "longblob NULL");
-
-$spip_auteurs_key = array(
-		"PRIMARY KEY"	=> "id_auteur",
-		"KEY login"	=> "login",
-		"KEY statut"	=> "statut",
-		"KEY lang"	=> "lang",
-		"KEY idx"	=> "idx",
-		"KEY en_ligne"	=> "en_ligne",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_breves = array(
-		"id_breve"	=> "bigint(21) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"lien_titre"	=> "text NOT NULL",
-		"lien_url"	=> "text NOT NULL",
-		"statut"	=> "varchar(6) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"maj"	=> "TIMESTAMP",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL");
-
-$spip_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve",
-		"KEY idx"	=> "idx",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_messages = array(
-		"id_message"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"type"	=> "varchar(6) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_fin"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"rv"	=> "varchar(3) NOT NULL",
-		"statut"	=> "varchar(6) NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_messages_key = array(
-		"PRIMARY KEY"	=> "id_message",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_mots = array(
-		"id_mot"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"type"	=> "text NOT NULL",
-		"extra"	=> "longblob NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_mots_key = array(
-		"PRIMARY KEY"	=> "id_mot",
-		"KEY idx"	=> "idx",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_groupes_mots = array(
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"unseul"	=> "varchar(3) NOT NULL",
-		"obligatoire"	=> "varchar(3) NOT NULL",
-		"articles"	=> "varchar(3) NOT NULL",
-		"breves"	=> "varchar(3) NOT NULL",
-		"rubriques"	=> "varchar(3) NOT NULL",
-		"syndic"	=> "varchar(3) NOT NULL",
-		"minirezo"	=> "varchar(3) NOT NULL",
-		"comite"	=> "varchar(3) NOT NULL",
-		"forum"	=> "varchar(3) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_groupes_mots_key = array(
-		"PRIMARY KEY"	=> "id_groupe");
-
-$spip_rubriques = array(
-		"id_rubrique"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"id_import"	=> "BIGINT DEFAULT '0'",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"statut_tmp"	=> "VARCHAR(10) NOT NULL",
-		"date_tmp"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL"
-		);
-
-$spip_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique",
-		"KEY lang"	=> "lang",
-		"KEY idx"	=> "idx",
-		"KEY id_parent"	=> "id_parent",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_documents = array(
-		"id_document"	=> "bigint(21) NOT NULL",
-		"id_vignette"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_type"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"fichier"	=> "varchar(255) NOT NULL",
-		"taille"	=> "integer NOT NULL",
-		"largeur"	=> "integer NOT NULL",
-		"hauteur"	=> "integer NOT NULL",
-		"mode"	=> "ENUM('vignette', 'document') NOT NULL",
-		"distant"	=> "VARCHAR(3) DEFAULT 'non'",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_documents_key = array(
-		"PRIMARY KEY"	=> "id_document",
-		"KEY id_vignette"	=> "id_vignette",
-		"KEY mode"	=> "mode",
-		"KEY id_type"	=> "id_type");
-
-$spip_types_documents = array(
-		"id_type"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"extension"	=> "varchar(10) NOT NULL",
-		"mime_type"	=> "varchar(100) NOT NULL",
-		"inclus"	=> "ENUM('non', 'image', 'embed') NOT NULL DEFAULT 'non'",
-		"upload"	=> "ENUM('oui', 'non') NOT NULL DEFAULT 'oui'",
-		"maj"	=> "TIMESTAMP");
-
-$spip_types_documents_key = array(
-		"PRIMARY KEY"	=> "id_type",
-		"UNIQUE extension"	=> "extension",
-		"KEY inclus"	=> "inclus");
-
-$spip_syndic = array(
-		"id_syndic"	=> "bigint(21) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"nom_site"	=> "blob NOT NULL",
-		"url_site"	=> "blob NOT NULL",
-		"url_syndic"	=> "blob NOT NULL",
-		"descriptif"	=> "blob NOT NULL",
-		"url_propre"	=> "VARCHAR(255) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"syndication"	=> "VARCHAR(3) NOT NULL",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_syndic"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_index"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"extra"			=> "longblob NULL",
-		"moderation"	=> "VARCHAR(3) DEFAULT 'non'",
-		"miroir"	=> "VARCHAR(3) DEFAULT 'non'",
-		"oubli"	=> "VARCHAR(3) DEFAULT 'non'",
-		"resume"	=> "VARCHAR(3) DEFAULT 'oui'"
-);
-
-$spip_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY idx"		=> "idx",
-		"KEY statut"	=> "statut, date_syndic",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_syndic_articles = array(
-		"id_syndic_article"	=> "bigint(21) NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"url"	=> "VARCHAR(255) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lesauteurs"	=> "text NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"descriptif"	=> "blob NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"url_source" => "TINYTEXT DEFAULT '' NOT NULL",
-		"source" => "TINYTEXT DEFAULT '' NOT NULL",
-		"tags" => "TEXT DEFAULT '' NOT NULL");
-
-$spip_syndic_articles_key = array(
-		"PRIMARY KEY"	=> "id_syndic_article",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY statut"	=> "statut",
-		"KEY url"	=> "url");
-
-$spip_forum = array(
-		"id_forum"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_thread"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "mediumtext NOT NULL",
-		"auteur"	=> "text NOT NULL",
-		"email_auteur"	=> "text NOT NULL",
-		"nom_site"	=> "text NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"statut"	=> "varchar(8) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"ip"	=> "varchar(16)",
-		"maj"	=> "TIMESTAMP",
-		"id_auteur"	=> "BIGINT DEFAULT '0' NOT NULL",
-		"id_message"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum",
-		"KEY id_parent"	=> "id_parent",
-		"KEY id_article"	=> "id_article",
-		"KEY id_breve"	=> "id_breve",
-		"KEY id_message"	=> "id_message",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY idx"	=> "idx",
-		"KEY statut"	=> "statut, date_heure");
-
-$spip_signatures = array(
-		"id_signature"	=> "bigint(21) NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_time"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"nom_email"	=> "text NOT NULL",
-		"ad_email"	=> "text NOT NULL",
-		"nom_site"	=> "text NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"message"	=> "mediumtext NOT NULL",
-		"statut"	=> "varchar(10) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_signatures_key = array(
-		"PRIMARY KEY"	=> "id_signature",
-		"KEY id_article"	=> "id_article",
-		"KEY idx"		=> "idx",
-		"KEY statut" => "statut");
-
-
-$spip_ajax_fonc = array(
-		"id_ajax_fonc" => "bigint(21) NOT NULL",
-		"id_auteur" => "bigint(21) NOT NULL",
-		"variables" => "text NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL" );
-
-$spip_ajax_fonc_key = array(
-		"PRIMARY KEY"		=> "id_ajax_fonc",
-		"KEY `hash`"	=> "`hash`");
-
-
-global $tables_principales;
-
-/// Attention: mes_fonctions peut avoir deja defini cette variable
-/// il faut donc rajouter, mais pas reinitialiser
-
-$tables_principales['spip_articles'] =
-	array('field' => &$spip_articles, 'key' => &$spip_articles_key);
-$tables_principales['spip_auteurs']  =
-	array('field' => &$spip_auteurs, 'key' => &$spip_auteurs_key);
-$tables_principales['spip_breves']   =
-	array('field' => &$spip_breves, 'key' => &$spip_breves_key);
-$tables_principales['spip_messages'] =
-	array('field' => &$spip_messages, 'key' => &$spip_messages_key);
-$tables_principales['spip_mots']     =
-	array('field' => &$spip_mots, 'key' => &$spip_mots_key);
-$tables_principales['spip_groupes_mots'] =
-	array('field' => &$spip_groupes_mots, 'key' => &$spip_groupes_mots_key);
-$tables_principales['spip_rubriques'] =
-	array('field' => &$spip_rubriques, 'key' => &$spip_rubriques_key);
-$tables_principales['spip_documents'] =
-	array('field' => &$spip_documents,  'key' => &$spip_documents_key);
-$tables_principales['spip_types_documents']	=
-	array('field' => &$spip_types_documents, 'key' => &$spip_types_documents_key);
-$tables_principales['spip_syndic'] =
-	array('field' => &$spip_syndic, 'key' => &$spip_syndic_key);
-$tables_principales['spip_syndic_articles']	=
-	array('field' => &$spip_syndic_articles, 'key' => &$spip_syndic_articles_key);
-$tables_principales['spip_forum'] =
-	array('field' => &$spip_forum,	'key' => &$spip_forum_key);
-$tables_principales['spip_signatures'] =
-	array('field' => &$spip_signatures, 'key' => &$spip_signatures_key);
-$tables_principales['spip_ajax_fonc'] =
-	array('field' => &$spip_ajax_fonc, 'key' => &$spip_ajax_fonc_key);
-
-?>
diff --git a/ecrire/maj/vieille_base/1917/typedoc.php b/ecrire/maj/vieille_base/1917/typedoc.php
deleted file mode 100644
index 7defd6facd..0000000000
--- a/ecrire/maj/vieille_base/1917/typedoc.php
+++ /dev/null
@@ -1,197 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2006                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-//
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-## cette API ne sait pas gerer les aliases ; a revoir...
-
-global $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-$tables_images = array(
-		       // Images reconnues par PHP
-		       'jpg' => 1, 
-		       'png' => 2, 
-		       'gif' => 3,
-
-		       // Autres images (peuvent utiliser le tag <img>)
-		       'bmp' => 'BMP',
-		       'psd' => 'Photoshop',
-		       'tif' => 'TIFF'
-		       );
-
-// Multimedia (peuvent utiliser le tag <embed>)
-
-$tables_sequences = array(
-			  'aiff' => 'AIFF',
-			  'asf' => 'Windows Media',
-			  'avi' => 'Windows Media',
-			  'flv' => 'Flash Video',
-			  'mid' => 'Midi',
-			  'mng' => 'MNG',
-			  'mov' => 'QuickTime',
-			  'mp3' => 'MP3',
-			  'mpg' => 'MPEG',
-			  'ogg' => 'Ogg',
-			  'qt' => 'QuickTime',
-			  'ra' => 'RealAudio',
-			  'ram' => 'RealAudio',
-			  'rm' => 'RealAudio',
-			  'swf' => 'Flash',
-			  'wav' => 'WAV',
-			  'wmv' => 'Windows Media',
-			  'svg' => 'Scalable Vector Graphics'
-			  );
-
-// Documents varies
-$tables_documents = array(
-			  'abw' => 'Abiword',
-			  'ai' => 'Adobe Illustrator',
-			  'bz2' => 'BZip',
-			  'bin' => 'Binary Data',
-			  'blend' => 'Blender',
-			  'c' => 'C source',
-			  'css' => 'Cascading Style Sheet',
-			  'deb' => 'Debian',
-			  'doc' => 'Word',
-			  'djvu' => 'DjVu',
-			  'dvi' => 'LaTeX DVI',
-			  'eps' => 'PostScript',
-			  'gz' => 'GZ',
-			  'h' => 'C header',
-			  'html' => 'HTML',
-			  'pas' => 'Pascal',
-			  'pdf' => 'PDF',
-			  'pgn' => 'Portable Game Notation',
-			  'ppt' => 'PowerPoint',
-			  'ps' => 'PostScript',
-			  'rpm' => 'RedHat/Mandrake/SuSE',
-			  'rtf' => 'RTF',
-			  'sdd' => 'StarOffice',
-			  'sdw' => 'StarOffice',
-			  'sit' => 'Stuffit',
-			  'sxc' => 'OpenOffice Calc',
-			  'sxi' => 'OpenOffice Impress',
-			  'sxw' => 'OpenOffice',
-			  'tex' => 'LaTeX',
-			  'tgz' => 'TGZ',
-			  'torrent' => 'BitTorrent',
-			  'ttf' => 'TTF Font',
-			  'txt' => 'texte',
-			  'xcf' => 'GIMP multi-layer',
-			  'xls' => 'Excel',
-			  'xml' => 'XML',
-			  'zip' => 'Zip',
-
-			// open document format
-			'odt' => 'opendocument text',
-			'ods' => 'opendocument spreadsheet',
-			'odp' => 'opendocument presentation',
-			'odg' => 'opendocument graphics',
-			'odc' => 'opendocument chart',
-			'odf' => 'opendocument formula',
-			'odb' => 'opendocument database',
-			'odi' => 'opendocument image',
-			'odm' => 'opendocument text-master',
-			'ott' => 'opendocument text-template',
-			'ots' => 'opendocument spreadsheet-template',
-			'otp' => 'opendocument presentation-template',
-			'otg' => 'opendocument graphics-template'
-			  );
-
-$tables_mime = array(
-		// Images reconnues par PHP
-		'jpg'=>'image/jpeg',
-		'png'=>'image/png',
-		'gif'=>'image/gif',
-
-		// Autres images (peuvent utiliser le tag <img>)
-		'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
-		'psd'=>'image/x-photoshop',	// pas IANA
-		'tif'=>'image/tiff',
-
-		// Multimedia (peuvent utiliser le tag <embed>)
-		'aiff'=>'audio/x-aiff',
-		'asf'=>'video/x-ms-asf',
-		'avi'=>'video/x-msvideo',
-		'flv' => 'video/x-flv',
-		'mid'=>'audio/midi',
-		'mng'=>'video/x-mng',
-		'mov'=>'video/quicktime',
-		'mp3'=>'audio/mpeg',
-		'mpg'=>'video/mpeg',
-		'ogg'=>'application/ogg',
-		'qt' =>'video/quicktime',
-		'ra' =>'audio/x-pn-realaudio',
-		'ram'=>'audio/x-pn-realaudio',
-		'rm' =>'audio/x-pn-realaudio',
-		'swf'=>'application/x-shockwave-flash',
-		'wav'=>'audio/x-wav',
-		'wmv'=>'video/x-ms-wmv',
-		'svg'=>'image/svg+xml',
-
-		// Documents varies
-		'ai' =>'application/illustrator',
-		'abw' =>'application/abiword',
-		'bin' => 'application/octet-stream', # le tout-venant
-		'blend' => 'application/x-blender',
-		'bz2'=>'application/x-bzip2',
-		'c'  =>'text/x-csrc',
-		'css'=>'text/css',
-		'deb'=>'application/x-debian-package',
-		'doc'=>'application/msword',
-		'djvu'=>'image/vnd.djvu',
-		'dvi'=>'application/x-dvi',
-		'eps'=>'application/postscript',
-		'gz' =>'application/x-gzip',
-		'h'  =>'text/x-chdr',
-		'html'=>'text/html',
-		'pas'=>'text/x-pascal',
-		'pdf'=>'application/pdf',
-		'pgn' =>'application/x-chess-pgn',
-		'ppt'=>'application/vnd.ms-powerpoint',
-		'ps' =>'application/postscript',
-		'rpm'=>'application/x-redhat-package-manager',
-		'rtf'=>'application/rtf',
-		'sdd'=>'application/vnd.stardivision.impress',
-		'sdw'=>'application/vnd.stardivision.writer',
-		'sit'=>'application/x-stuffit',
-		'sxc'=>'application/vnd.sun.xml.calc',
-		'sxi'=>'application/vnd.sun.xml.impress',
-		'sxw'=>'application/vnd.sun.xml.writer',
-		'tex'=>'text/x-tex',
-		'tgz'=>'application/x-gtar',
-		'torrent' => 'application/x-bittorrent',
-		'ttf'=>'application/x-font-ttf',
-		'txt'=>'text/plain',
-		'xcf'=>'application/x-xcf',
-		'xls'=>'application/vnd.ms-excel',
-		'xml'=>'application/xml',
-		'zip'=>'application/zip',
-
-		// open document format
-		'odt' => 'application/vnd.oasis.opendocument.text',
-		'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
-		'odp' => 'application/vnd.oasis.opendocument.presentation',
-		'odg' => 'application/vnd.oasis.opendocument.graphics',
-		'odc' => 'application/vnd.oasis.opendocument.chart',
-		'odf' => 'application/vnd.oasis.opendocument.formula',
-		'odb' => 'application/vnd.oasis.opendocument.database',
-		'odi' => 'application/vnd.oasis.opendocument.image',
-		'odm' => 'application/vnd.oasis.opendocument.text-master',
-		'ott' => 'application/vnd.oasis.opendocument.text-template',
-		'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
-		'otp' => 'application/vnd.oasis.opendocument.presentation-template',
-		'otg' => 'application/vnd.oasis.opendocument.graphics-template'
-	);
-?>
diff --git a/ecrire/maj/vieille_base/1927/auxiliaires.php b/ecrire/maj/vieille_base/1927/auxiliaires.php
deleted file mode 100644
index 6a21de514f..0000000000
--- a/ecrire/maj/vieille_base/1927/auxiliaires.php
+++ /dev/null
@@ -1,378 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2007                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-$spip_petitions = array(
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"email_unique"	=> "CHAR (3) NOT NULL",
-		"site_obli"	=> "CHAR (3) NOT NULL",
-		"site_unique"	=> "CHAR (3) NOT NULL",
-		"message"	=> "CHAR (3) NOT NULL",
-		"texte"	=> "LONGBLOB NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_petitions_key = array(
-		"PRIMARY KEY"	=> "id_article");
-
-$spip_visites = array(
-		"date"	=> "DATE NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_key = array(
-		"PRIMARY KEY"	=> "date");
-
-$spip_visites_articles = array(
-		"date"	=> "DATE NOT NULL",
-		"id_article"	=> "INT UNSIGNED NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_visites_articles_key = array(
-		"PRIMARY KEY"	=> "date, id_article");
-
-$spip_referers = array(
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"visites_jour"	=> "INT UNSIGNED NOT NULL",
-		"visites_veille"=> "INT UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_key = array(
-		"PRIMARY KEY"	=> "referer_md5");
-
-$spip_referers_articles = array(
-		"id_article"	=> "INT UNSIGNED NOT NULL",
-		"referer_md5"	=> "BIGINT UNSIGNED NOT NULL",
-		"date"		=> "DATE NOT NULL",
-		"referer"	=> "VARCHAR (255) NOT NULL",
-		"visites"	=> "INT UNSIGNED NOT NULL",
-		"maj"		=> "TIMESTAMP");
-
-$spip_referers_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, referer_md5",
-		"KEY referer_md5"	=> "referer_md5");
-
-$spip_auteurs_articles = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_articles_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_article",
-		"KEY id_article"	=> "id_article");
-
-$spip_auteurs_rubriques = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_auteurs_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_rubrique",
-		"KEY id_rubrique"	=> "id_rubrique");
-
-$spip_auteurs_messages = array(
-		"id_auteur"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_message"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"vu"		=> "CHAR (3) NOT NULL");
-
-$spip_auteurs_messages_key = array(
-		"PRIMARY KEY"	=> "id_auteur, id_message",
-		"KEY id_message"	=> "id_message");
-
-
-$spip_documents_articles = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_articles_key = array(
-		"PRIMARY KEY"		=> "id_article, id_document",
-		"KEY id_document"	=> "id_document");
-
-$spip_documents_rubriques = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_rubriques_key = array(
-		"PRIMARY KEY"		=> "id_rubrique, id_document",
-		"KEY id_document"	=> "id_document");
-
-$spip_documents_breves = array(
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_documents_breves_key = array(
-		"PRIMARY KEY"		=> "id_breve, id_document",
-		"KEY id_document"	=> "id_document");
-
-$spip_mots_articles = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_articles_key = array(
-		"PRIMARY KEY"	=> "id_article, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_breves = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_rubriques = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_syndic = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_forum = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_forum"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_mots_documents = array(
-		"id_mot"	=> "BIGINT (21) DEFAULT '0' NOT NULL",
-		"id_document"	=> "BIGINT (21) DEFAULT '0' NOT NULL");
-
-$spip_mots_documents_key = array(
-		"PRIMARY KEY"	=> "id_document, id_mot",
-		"KEY id_mot"	=> "id_mot");
-
-$spip_meta = array(
-		"nom"	=> "VARCHAR (255) NOT NULL",
-		"valeur"	=> "text DEFAULT ''",
-		"impt"	=> "ENUM('non', 'oui') DEFAULT 'oui' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_meta_key = array(
-		"PRIMARY KEY"	=> "nom");
-
-$spip_index = array(
- 		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
- 		"points"	=> "INT UNSIGNED DEFAULT '0' NOT NULL",
-		"id_objet"	=> "INT UNSIGNED NOT NULL",
-		"id_table"	=> "TINYINT UNSIGNED NOT NULL"	);
-
-$spip_index_key = array(
- 		"KEY `hash`"	=> "`hash`",
-		"KEY id_objet"	=> "id_objet",
-		"KEY id_table"	=> "id_table");
-
-$spip_index_dico = array(
-		"`hash`"	=> "BIGINT UNSIGNED NOT NULL",
-		"dico"		=> "VARCHAR (30) NOT NULL");
-
-$spip_index_dico_key = array(
-		"PRIMARY KEY"	=> "dico");
-
-$spip_versions = array (
-		"id_article"	=> "bigint(21) NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"id_auteur"	=> "VARCHAR(23) NOT NULL", # stocke aussi IP(v6)
-		"titre_version"	=> "text DEFAULT '' NOT NULL",
-		"permanent"	=> "char(3) NOT NULL",
-		"champs"	=> "text NOT NULL");
-
-$spip_versions_key = array (
-		"PRIMARY KEY"	=> "id_article, id_version",
-		"KEY date"	=> "id_article, date",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_versions_fragments = array(
-		"id_fragment"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_min"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"version_max"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) NOT NULL",
-		"compress"	=> "tinyint NOT NULL",
-		"fragment"	=> "longblob NOT NULL");
-
-$spip_versions_fragments_key = array(
-	     "PRIMARY KEY"	=> "id_article, id_fragment, version_min");
-
-$spip_caches = array(
-		"fichier" => "char (64) NOT NULL",
-		"id" => "char (64) NOT NULL",
-		// i=par id, t=timer, x=suppression
-		"type" => "CHAR (1) DEFAULT 'i' NOT NULL",
-		"taille" => "integer DEFAULT '0' NOT NULL");
-$spip_caches_key = array(
-		"PRIMARY KEY"	=> "fichier, id",
-		"KEY fichier" => "fichier",
-		"KEY id" => "id");
-
-$spip_ortho_cache = array(
-	"lang" => "VARCHAR(10) NOT NULL",
-	"mot" => "VARCHAR(255) BINARY NOT NULL",
-	"ok" => "TINYINT NOT NULL",
-	"suggest" => "BLOB NOT NULL",
-	"maj" => "TIMESTAMP");
-$spip_ortho_cache_key = array(
-	"PRIMARY KEY" => "lang, mot",
-	"KEY maj" => "maj");
-
-$spip_ortho_dico = array(
-	"lang" => "VARCHAR(10) NOT NULL",
-	"mot" => "VARCHAR(255) BINARY NOT NULL",
-	"id_auteur" => "BIGINT UNSIGNED NOT NULL",
-	"maj" => "TIMESTAMP");
-$spip_ortho_dico_key = array(
-	"PRIMARY KEY" => "lang, mot");
-
-
-
-
-global $tables_auxiliaires;
-
-$tables_auxiliaires['spip_petitions'] = array(
-	'field' => &$spip_petitions,
-	'key' => &$spip_petitions_key
-);
-$tables_auxiliaires['spip_visites'] = array(
-	'field' => &$spip_visites,
-	'key' => &$spip_visites_key);
-$tables_auxiliaires['spip_visites_articles'] = array(
-	'field' => &$spip_visites_articles,
-	'key' => &$spip_visites_articles_key);
-$tables_auxiliaires['spip_referers'] = array(
-	'field' => &$spip_referers,
-	'key' => &$spip_referers_key);
-$tables_auxiliaires['spip_referers_articles'] = array(
-	'field' => &$spip_referers_articles,
-	'key' => &$spip_referers_articles_key);
-$tables_auxiliaires['spip_auteurs_articles'] = array(
-	'field' => &$spip_auteurs_articles,
-	'key' => &$spip_auteurs_articles_key);
-$tables_auxiliaires['spip_auteurs_rubriques'] = array(
-	'field' => &$spip_auteurs_rubriques,
-	'key' => &$spip_auteurs_rubriques_key);
-$tables_auxiliaires['spip_auteurs_messages'] = array(
-	'field' => &$spip_auteurs_messages,
-	'key' => &$spip_auteurs_messages_key);
-$tables_auxiliaires['spip_documents_articles'] = array(
-	'field' => &$spip_documents_articles,
-	'key' => &$spip_documents_articles_key);
-$tables_auxiliaires['spip_documents_rubriques'] = array(
-	'field' => &$spip_documents_rubriques,
-	'key' => &$spip_documents_rubriques_key);
-$tables_auxiliaires['spip_documents_breves'] = array(
-	'field' => &$spip_documents_breves,
-	'key' => &$spip_documents_breves_key);
-$tables_auxiliaires['spip_mots_articles'] = array(
-	'field' => &$spip_mots_articles,
-	'key' => &$spip_mots_articles_key);
-$tables_auxiliaires['spip_mots_breves'] = array(
-	'field' => &$spip_mots_breves,
-	'key' => &$spip_mots_breves_key);
-$tables_auxiliaires['spip_mots_rubriques'] = array(
-	'field' => &$spip_mots_rubriques,
-	'key' => &$spip_mots_rubriques_key);
-$tables_auxiliaires['spip_mots_syndic'] = array(
-	'field' => &$spip_mots_syndic,
-	'key' => &$spip_mots_syndic_key);
-$tables_auxiliaires['spip_mots_forum'] = array(
-	'field' => &$spip_mots_forum,
-	'key' => &$spip_mots_forum_key);
-$tables_auxiliaires['spip_mots_documents'] = array(
-	'field' => &$spip_mots_documents,
-	'key' => &$spip_mots_documents_key);
-$tables_auxiliaires['spip_meta'] = array(
-	'field' => &$spip_meta,
-	'key' => &$spip_meta_key);
-$tables_auxiliaires['spip_index'] = array(
-	'field' => &$spip_index,
-	'key' => &$spip_index_key);
-$tables_auxiliaires['spip_index_dico'] = array(
-	'field' => &$spip_index_dico,
-	'key' => &$spip_index_dico_key);
-$tables_auxiliaires['spip_versions'] = array(
-	'field' => &$spip_versions,
-	'key' => &$spip_versions_key);
-$tables_auxiliaires['spip_versions_fragments'] = array(
-	'field' => &$spip_versions_fragments,
-	'key' => &$spip_versions_fragments_key);
-$tables_auxiliaires['spip_caches'] = array(
-	'field' => &$spip_caches,
-	'key' => &$spip_caches_key);
-$tables_auxiliaires['spip_ortho_cache'] = array(
-	'field' => &$spip_ortho_cache,
-	'key' => &$spip_ortho_cache_key);
-$tables_auxiliaires['spip_ortho_dico'] = array(
-	'field' => &$spip_ortho_dico,
-	'key' => &$spip_ortho_dico_key);
-	
-//
-// tableau des tables de jointures
-// Ex: gestion du critere {id_mot} dans la boucle(ARTICLES)
-
-global $tables_jointures;
-
-$tables_jointures['spip_articles'][]= 'mots_articles';
-$tables_jointures['spip_articles'][]= 'auteurs_articles';
-$tables_jointures['spip_articles'][]= 'documents_articles';
-$tables_jointures['spip_articles'][]= 'mots';
-$tables_jointures['spip_articles'][]= 'signatures';
-
-$tables_jointures['spip_auteurs'][]= 'auteurs_articles';
-$tables_jointures['spip_auteurs'][]= 'mots';
-
-$tables_jointures['spip_breves'][]= 'mots_breves';
-$tables_jointures['spip_breves'][]= 'documents_breves';
-$tables_jointures['spip_breves'][]= 'mots';
-
-$tables_jointures['spip_documents'][]= 'documents_articles';
-$tables_jointures['spip_documents'][]= 'documents_rubriques';
-$tables_jointures['spip_documents'][]= 'documents_breves';
-$tables_jointures['spip_documents'][]= 'mots_documents';
-$tables_jointures['spip_documents'][]= 'types_documents';
-$tables_jointures['spip_documents'][]= 'mots';
-
-$tables_jointures['spip_forum'][]= 'mots_forum';
-$tables_jointures['spip_forum'][]= 'mots';
-
-$tables_jointures['spip_rubriques'][]= 'mots_rubriques';
-$tables_jointures['spip_rubriques'][]= 'documents_rubriques';
-$tables_jointures['spip_rubriques'][]= 'mots';
-
-$tables_jointures['spip_syndic'][]= 'mots_syndic';
-$tables_jointures['spip_syndic'][]= 'mots';
-
-$tables_jointures['spip_syndic_articles'][]= 'syndic';
-$tables_jointures['spip_syndic_articles'][]= 'mots';
-
-$tables_jointures['spip_mots'][]= 'mots_articles';
-$tables_jointures['spip_mots'][]= 'mots_breves';
-$tables_jointures['spip_mots'][]= 'mots_forum';
-$tables_jointures['spip_mots'][]= 'mots_rubriques';
-$tables_jointures['spip_mots'][]= 'mots_syndic';
-$tables_jointures['spip_mots'][]= 'mots_documents';
-
-$tables_jointures['spip_groupes_mots'][]= 'mots';
-
-?>
\ No newline at end of file
diff --git a/ecrire/maj/vieille_base/1927/create.php b/ecrire/maj/vieille_base/1927/create.php
deleted file mode 100644
index b9deb77302..0000000000
--- a/ecrire/maj/vieille_base/1927/create.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2007                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-include_spip('maj/vieille_base/1927/serial');
-include_spip('maj/vieille_base/1927/auxiliaires');
-include_spip('maj/vieille_base/1927/typedoc');
-
-// http://doc.spip.org/@creer_base
-function maj_vieille_base_1927_create() {
-  global $tables_principales, $tables_auxiliaires, $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-	// ne pas revenir plusieurs fois (si, au contraire, il faut pouvoir
-	// le faire car certaines mises a jour le demandent explicitement)
-	# static $vu = false;
-	# if ($vu) return; else $vu = true;
-
-	foreach($tables_principales as $k => $v)
-		spip_create_vieille_table($k, $v['field'], $v['key'], true);
-
-	foreach($tables_auxiliaires as $k => $v)
-		spip_create_vieille_table($k, $v['field'], $v['key'], false);
-
-	foreach($tables_images as $k => $v)
-		sql_query("INSERT IGNORE INTO spip_types_documents (extension, inclus, titre, id_type) VALUES ('$k', 'image', '" .
-			      (is_numeric($v) ?
-			       (strtoupper($k) . "', $v") :
-			       "$v', 0") .
-			      ")");
-
-	foreach($tables_sequences as $k => $v)
-		sql_query("INSERT IGNORE INTO spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'embed')");
-
-	foreach($tables_documents as $k => $v)
-		sql_query("INSERT IGNORE INTO spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'non')");
-
-	foreach ($tables_mime as $extension => $type_mime)
-	  sql_query("UPDATE spip_types_documents
-		SET mime_type='$type_mime' WHERE extension='$extension'");
-}
-
-
-?>
diff --git a/ecrire/maj/vieille_base/1927/serial.php b/ecrire/maj/vieille_base/1927/serial.php
deleted file mode 100644
index 6e29e0dc18..0000000000
--- a/ecrire/maj/vieille_base/1927/serial.php
+++ /dev/null
@@ -1,372 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2007                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-
-$spip_articles = array(
-		"id_article"	=> "bigint(21) NOT NULL",
-		"surtitre"	=> "text NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"soustitre"	=> "text NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"chapo"	=> "mediumtext NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"ps"	=> "mediumtext NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"statut"	=> "varchar(10) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"date_redac"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"visites"	=> "INTEGER DEFAULT '0' NOT NULL",
-		"referers"	=> "INTEGER DEFAULT '0' NOT NULL",
-		"popularite"	=> "DOUBLE DEFAULT '0' NOT NULL",
-		"accepter_forum"	=> "CHAR(3) NOT NULL",
-		"date_modif"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"		=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"id_trad"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"extra"		=> "longblob NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"id_version"	=> "int unsigned DEFAULT '0' NOT NULL",
-		"nom_site"	=> "tinytext NOT NULL",
-		"url_site"	=> "VARCHAR(255) NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL");
-
-$spip_articles_key = array(
-		"PRIMARY KEY"		=> "id_article",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY id_trad"		=> "id_trad",
-		"KEY lang"			=> "lang",
-		"KEY statut"		=> "statut, date",
-		"KEY url_site"		=> "url_site",
-		"KEY date_modif"	=> "date_modif",
-		"KEY idx"			=> "idx",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_auteurs = array(
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"nom"	=> "text NOT NULL",
-		"bio"	=> "text NOT NULL",
-		"email"	=> "tinytext NOT NULL",
-		"nom_site"	=> "tinytext NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"login"	=> "VARCHAR(255) BINARY NOT NULL",
-		"pass"	=> "tinytext NOT NULL",
-		"low_sec"	=> "tinytext NOT NULL",
-		"statut"	=> "VARCHAR(255) NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"pgp"	=> "BLOB NOT NULL",
-		"htpass"	=> "tinyblob NOT NULL",
-		"en_ligne"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"imessage"	=> "VARCHAR(3) NOT NULL",
-		"messagerie"	=> "VARCHAR(3) NOT NULL",
-		"alea_actuel"	=> "tinytext NOT NULL",
-		"alea_futur"	=> "tinytext NOT NULL",
-		"prefs"	=> "tinytext NOT NULL",
-		"cookie_oubli"	=> "tinytext NOT NULL",
-		"source"	=> "VARCHAR(10) DEFAULT 'spip' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"extra"	=> "longblob NULL");
-
-$spip_auteurs_key = array(
-		"PRIMARY KEY"	=> "id_auteur",
-		"KEY login"	=> "login",
-		"KEY statut"	=> "statut",
-		"KEY lang"	=> "lang",
-		"KEY idx"	=> "idx",
-		"KEY en_ligne"	=> "en_ligne",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_breves = array(
-		"id_breve"	=> "bigint(21) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"lien_titre"	=> "text NOT NULL",
-		"lien_url"	=> "text NOT NULL",
-		"statut"	=> "varchar(6) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"maj"	=> "TIMESTAMP",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL");
-
-$spip_breves_key = array(
-		"PRIMARY KEY"	=> "id_breve",
-		"KEY idx"	=> "idx",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_messages = array(
-		"id_message"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"type"	=> "varchar(6) NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_fin"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"rv"	=> "varchar(3) NOT NULL",
-		"statut"	=> "varchar(6) NOT NULL",
-		"id_auteur"	=> "bigint(21) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_messages_key = array(
-		"PRIMARY KEY"	=> "id_message",
-		"KEY id_auteur"	=> "id_auteur");
-
-$spip_mots = array(
-		"id_mot"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"type"	=> "text NOT NULL",
-		"extra"	=> "longblob NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_mots_key = array(
-		"PRIMARY KEY"	=> "id_mot",
-		"KEY idx"	=> "idx",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_groupes_mots = array(
-		"id_groupe"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"unseul"	=> "varchar(3) NOT NULL",
-		"obligatoire"	=> "varchar(3) NOT NULL",
-		"articles"	=> "varchar(3) NOT NULL",
-		"breves"	=> "varchar(3) NOT NULL",
-		"rubriques"	=> "varchar(3) NOT NULL",
-		"syndic"	=> "varchar(3) NOT NULL",
-		"minirezo"	=> "varchar(3) NOT NULL",
-		"comite"	=> "varchar(3) NOT NULL",
-		"forum"	=> "varchar(3) NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_groupes_mots_key = array(
-		"PRIMARY KEY"	=> "id_groupe");
-
-$spip_rubriques = array(
-		"id_rubrique"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"texte"	=> "longblob NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"export"	=> "VARCHAR(10) DEFAULT 'oui'",
-		"id_import"	=> "BIGINT DEFAULT '0'",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"langue_choisie"	=> "VARCHAR(3) DEFAULT 'non'",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"extra"	=> "longblob NULL",
-		"url_propre" => "VARCHAR(255) NOT NULL",
-		"statut_tmp"	=> "VARCHAR(10) NOT NULL",
-		"date_tmp"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL"
-		);
-
-$spip_rubriques_key = array(
-		"PRIMARY KEY"	=> "id_rubrique",
-		"KEY lang"	=> "lang",
-		"KEY idx"	=> "idx",
-		"KEY id_parent"	=> "id_parent",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_documents = array(
-		"id_document"	=> "bigint(21) NOT NULL",
-		"id_vignette"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_type"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"fichier"	=> "varchar(255) NOT NULL",
-		"taille"	=> "integer NOT NULL",
-		"largeur"	=> "integer NOT NULL",
-		"hauteur"	=> "integer NOT NULL",
-		"mode"	=> "ENUM('vignette', 'document') NOT NULL",
-		"distant"	=> "VARCHAR(3) DEFAULT 'non'",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_documents_key = array(
-		"PRIMARY KEY"	=> "id_document",
-		"KEY id_vignette"	=> "id_vignette",
-		"KEY mode"	=> "mode",
-		"KEY id_type"	=> "id_type");
-
-$spip_types_documents = array(
-		"id_type"	=> "bigint(21) NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"descriptif"	=> "text NOT NULL",
-		"extension"	=> "varchar(10) NOT NULL",
-		"mime_type"	=> "varchar(100) NOT NULL",
-		"inclus"	=> "ENUM('non', 'image', 'embed') NOT NULL DEFAULT 'non'",
-		"upload"	=> "ENUM('oui', 'non') NOT NULL DEFAULT 'oui'",
-		"maj"	=> "TIMESTAMP");
-
-$spip_types_documents_key = array(
-		"PRIMARY KEY"	=> "id_type",
-		"UNIQUE extension"	=> "extension",
-		"KEY inclus"	=> "inclus");
-
-$spip_syndic = array(
-		"id_syndic"	=> "bigint(21) NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_secteur"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"nom_site"	=> "blob NOT NULL",
-		"url_site"	=> "blob NOT NULL",
-		"url_syndic"	=> "blob NOT NULL",
-		"descriptif"	=> "blob NOT NULL",
-		"url_propre"	=> "VARCHAR(255) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"syndication"	=> "VARCHAR(3) NOT NULL",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_syndic"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"date_index"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"extra"			=> "longblob NULL",
-		"moderation"	=> "VARCHAR(3) DEFAULT 'non'",
-		"miroir"	=> "VARCHAR(3) DEFAULT 'non'",
-		"oubli"	=> "VARCHAR(3) DEFAULT 'non'",
-		"resume"	=> "VARCHAR(3) DEFAULT 'oui'"
-);
-
-$spip_syndic_key = array(
-		"PRIMARY KEY"	=> "id_syndic",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY id_secteur"	=> "id_secteur",
-		"KEY idx"		=> "idx",
-		"KEY statut"	=> "statut, date_syndic",
-		"KEY url_propre"	=> "url_propre");
-
-$spip_syndic_articles = array(
-		"id_syndic_article"	=> "bigint(21) NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"url"	=> "VARCHAR(255) NOT NULL",
-		"date"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"lesauteurs"	=> "text NOT NULL",
-		"maj"	=> "TIMESTAMP",
-		"statut"	=> "VARCHAR(10) NOT NULL",
-		"descriptif"	=> "blob NOT NULL",
-		"lang"	=> "VARCHAR(10) DEFAULT '' NOT NULL",
-		"url_source" => "TINYTEXT DEFAULT '' NOT NULL",
-		"source" => "TINYTEXT DEFAULT '' NOT NULL",
-		"tags" => "TEXT DEFAULT '' NOT NULL");
-
-$spip_syndic_articles_key = array(
-		"PRIMARY KEY"	=> "id_syndic_article",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY statut"	=> "statut",
-		"KEY url"	=> "url");
-
-$spip_forum = array(
-		"id_forum"	=> "bigint(21) NOT NULL",
-		"id_parent"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_thread"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_rubrique"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_breve"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_heure"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"titre"	=> "text NOT NULL",
-		"texte"	=> "mediumtext NOT NULL",
-		"auteur"	=> "text NOT NULL",
-		"email_auteur"	=> "text NOT NULL",
-		"nom_site"	=> "text NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"statut"	=> "varchar(8) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"ip"	=> "varchar(16)",
-		"maj"	=> "TIMESTAMP",
-		"id_auteur"	=> "BIGINT DEFAULT '0' NOT NULL",
-		"id_message"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"id_syndic"	=> "bigint(21) DEFAULT '0' NOT NULL");
-
-$spip_forum_key = array(
-		"PRIMARY KEY"	=> "id_forum",
-		"KEY id_parent"	=> "id_parent",
-		"KEY id_article"	=> "id_article",
-		"KEY id_breve"	=> "id_breve",
-		"KEY id_message"	=> "id_message",
-		"KEY id_syndic"	=> "id_syndic",
-		"KEY id_rubrique"	=> "id_rubrique",
-		"KEY idx"	=> "idx",
-		"KEY statut"	=> "statut, date_heure");
-
-$spip_signatures = array(
-		"id_signature"	=> "bigint(21) NOT NULL",
-		"id_article"	=> "bigint(21) DEFAULT '0' NOT NULL",
-		"date_time"	=> "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL",
-		"nom_email"	=> "text NOT NULL",
-		"ad_email"	=> "text NOT NULL",
-		"nom_site"	=> "text NOT NULL",
-		"url_site"	=> "text NOT NULL",
-		"message"	=> "mediumtext NOT NULL",
-		"statut"	=> "varchar(10) NOT NULL",
-		"idx"		=> "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL",
-		"maj"	=> "TIMESTAMP");
-
-$spip_signatures_key = array(
-		"PRIMARY KEY"	=> "id_signature",
-		"KEY id_article"	=> "id_article",
-		"KEY idx"		=> "idx",
-		"KEY statut" => "statut");
-
-
-global $tables_principales;
-
-/// Attention: mes_fonctions peut avoir deja defini cette variable
-/// il faut donc rajouter, mais pas reinitialiser
-
-$tables_principales['spip_articles'] =
-	array('field' => &$spip_articles, 'key' => &$spip_articles_key);
-$tables_principales['spip_auteurs']  =
-	array('field' => &$spip_auteurs, 'key' => &$spip_auteurs_key);
-$tables_principales['spip_breves']   =
-	array('field' => &$spip_breves, 'key' => &$spip_breves_key);
-$tables_principales['spip_messages'] =
-	array('field' => &$spip_messages, 'key' => &$spip_messages_key);
-$tables_principales['spip_mots']     =
-	array('field' => &$spip_mots, 'key' => &$spip_mots_key);
-$tables_principales['spip_groupes_mots'] =
-	array('field' => &$spip_groupes_mots, 'key' => &$spip_groupes_mots_key);
-$tables_principales['spip_rubriques'] =
-	array('field' => &$spip_rubriques, 'key' => &$spip_rubriques_key);
-$tables_principales['spip_documents'] =
-	array('field' => &$spip_documents,  'key' => &$spip_documents_key);
-$tables_principales['spip_types_documents']	=
-	array('field' => &$spip_types_documents, 'key' => &$spip_types_documents_key);
-$tables_principales['spip_syndic'] =
-	array('field' => &$spip_syndic, 'key' => &$spip_syndic_key);
-$tables_principales['spip_syndic_articles']	=
-	array('field' => &$spip_syndic_articles, 'key' => &$spip_syndic_articles_key);
-$tables_principales['spip_forum'] =
-	array('field' => &$spip_forum,	'key' => &$spip_forum_key);
-$tables_principales['spip_signatures'] =
-	array('field' => &$spip_signatures, 'key' => &$spip_signatures_key);
-
-?>
diff --git a/ecrire/maj/vieille_base/1927/typedoc.php b/ecrire/maj/vieille_base/1927/typedoc.php
deleted file mode 100644
index 2cb28c0c6e..0000000000
--- a/ecrire/maj/vieille_base/1927/typedoc.php
+++ /dev/null
@@ -1,211 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2007                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-
-//
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-## cette API ne sait pas gerer les aliases ; a revoir...
-
-global $tables_images, $tables_sequences, $tables_documents, $tables_mime;
-
-$tables_images = array(
-		       // Images reconnues par PHP
-		       'jpg' => 1, 
-		       'png' => 2, 
-		       'gif' => 3,
-
-		       // Autres images (peuvent utiliser le tag <img>)
-		       'bmp' => 'BMP',
-		       'tif' => 'TIFF'
-		       );
-
-// Multimedia (peuvent utiliser le tag <embed>)
-
-$tables_sequences = array(
-			  'aiff' => 'AIFF',
-			  'asf' => 'Windows Media',
-			  'avi' => 'AVI',
-			  'flv' => 'Flash Video',
-			  'mid' => 'Midi',
-			  'mng' => 'MNG',
-			  'mka' => 'Matroska Audio',
-			  'mkv' => 'Matroska Video',
-			  'mov' => 'QuickTime',
-			  'mp3' => 'MP3',
-			  'mp4' => 'MPEG4',
-			  'mpg' => 'MPEG',
-			  'ogg' => 'Ogg',
-			  'qt' => 'QuickTime',
-			  'ra' => 'RealAudio',
-			  'ram' => 'RealAudio',
-			  'rm' => 'RealAudio',
-			  'svg' => 'Scalable Vector Graphics',
-			  'swf' => 'Flash',
-			  'wav' => 'WAV',
-			  'wmv' => 'Windows Media'
-			  );
-
-// Documents varies
-$tables_documents = array(
-			  'abw' => 'Abiword',
-			  'ai' => 'Adobe Illustrator',
-			  'bz2' => 'BZip',
-			  'bin' => 'Binary Data',
-			  'blend' => 'Blender',
-			  'c' => 'C source',
-			  'css' => 'Cascading Style Sheet',
-			  'csv' => 'Comma Separated Values',
-			  'deb' => 'Debian',
-			  'doc' => 'Word',
-			  'djvu' => 'DjVu',
-			  'dvi' => 'LaTeX DVI',
-			  'eps' => 'PostScript',
-			  'gz' => 'GZ',
-			  'h' => 'C header',
-			  'html' => 'HTML',
-			  'kml' => 'Keyhole Markup Language',
-			  'kmz' => 'Google Earth Placemark File',
-			  'pas' => 'Pascal',
-			  'pdf' => 'PDF',
-			  'pgn' => 'Portable Game Notation',
-			  'ppt' => 'PowerPoint',
-			  'ps' => 'PostScript',
-			  'psd' => 'Photoshop',
-			  'rpm' => 'RedHat/Mandrake/SuSE',
-			  'rtf' => 'RTF',
-			  'sdd' => 'StarOffice',
-			  'sdw' => 'StarOffice',
-			  'sit' => 'Stuffit',
-			  'sxc' => 'OpenOffice Calc',
-			  'sxi' => 'OpenOffice Impress',
-			  'sxw' => 'OpenOffice',
-			  'tex' => 'LaTeX',
-			  'tgz' => 'TGZ',
-			  'torrent' => 'BitTorrent',
-			  'ttf' => 'TTF Font',
-			  'txt' => 'texte',
-			  'xcf' => 'GIMP multi-layer',
-			  'xls' => 'Excel',
-			  'xml' => 'XML',
-			  'zip' => 'Zip',
-
-			// open document format
-			'odt' => 'opendocument text',
-			'ods' => 'opendocument spreadsheet',
-			'odp' => 'opendocument presentation',
-			'odg' => 'opendocument graphics',
-			'odc' => 'opendocument chart',
-			'odf' => 'opendocument formula',
-			'odb' => 'opendocument database',
-			'odi' => 'opendocument image',
-			'odm' => 'opendocument text-master',
-			'ott' => 'opendocument text-template',
-			'ots' => 'opendocument spreadsheet-template',
-			'otp' => 'opendocument presentation-template',
-			'otg' => 'opendocument graphics-template',
-		
-			  );
-
-$tables_mime = array(
-		// Images reconnues par PHP
-		'jpg'=>'image/jpeg',
-		'png'=>'image/png',
-		'gif'=>'image/gif',
-
-		// Autres images (peuvent utiliser le tag <img>)
-		'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
-		'tif'=>'image/tiff',
-
-		// Multimedia (peuvent utiliser le tag <embed>)
-		'aiff'=>'audio/x-aiff',
-		'asf'=>'video/x-ms-asf',
-		'avi'=>'video/x-msvideo',
-		'flv' => 'video/x-flv',
-		'mid'=>'audio/midi',
-		'mka' => 'audio/mka',
-		'mkv' => 'video/mkv',
-		'mng'=>'video/x-mng',
-		'mov'=>'video/quicktime',
-		'mp3'=>'audio/mpeg',
-		'mp4' => 'application/mp4',
-		'mpg'=>'video/mpeg',
-		'ogg'=>'application/ogg',
-		'qt' =>'video/quicktime',
-		'ra' =>'audio/x-pn-realaudio',
-		'ram'=>'audio/x-pn-realaudio',
-		'rm' =>'audio/x-pn-realaudio',
-		'svg'=>'image/svg+xml',
-		'swf'=>'application/x-shockwave-flash',
-		'wav'=>'audio/x-wav',
-		'wmv'=>'video/x-ms-wmv',
-
-		// Documents varies
-		'ai' =>'application/illustrator',
-		'abw' =>'application/abiword',
-		'bin' => 'application/octet-stream', # le tout-venant
-		'blend' => 'application/x-blender',
-		'bz2'=>'application/x-bzip2',
-		'c'  =>'text/x-csrc',
-		'css'=>'text/css',
-		'csv'=>'text/csv',
-		'deb'=>'application/x-debian-package',
-		'doc'=>'application/msword',
-		'djvu'=>'image/vnd.djvu',
-		'dvi'=>'application/x-dvi',
-		'eps'=>'application/postscript',
-		'gz' =>'application/x-gzip',
-		'h'  =>'text/x-chdr',
-		'html'=>'text/html',
-		'kml'=>'application/vnd.google-earth.kml+xml',
-		'kmz'=>'application/vnd.google-earth.kmz',
-		'pas'=>'text/x-pascal',
-		'pdf'=>'application/pdf',
-		'pgn' =>'application/x-chess-pgn',
-		'ppt'=>'application/vnd.ms-powerpoint',
-		'ps' =>'application/postscript',
-		'psd'=>'image/x-photoshop', // pas enregistre par IANA
-		'rpm'=>'application/x-redhat-package-manager',
-		'rtf'=>'application/rtf',
-		'sdd'=>'application/vnd.stardivision.impress',
-		'sdw'=>'application/vnd.stardivision.writer',
-		'sit'=>'application/x-stuffit',
-		'sxc'=>'application/vnd.sun.xml.calc',
-		'sxi'=>'application/vnd.sun.xml.impress',
-		'sxw'=>'application/vnd.sun.xml.writer',
-		'tex'=>'text/x-tex',
-		'tgz'=>'application/x-gtar',
-		'torrent' => 'application/x-bittorrent',
-		'ttf'=>'application/x-font-ttf',
-		'txt'=>'text/plain',
-		'xcf'=>'application/x-xcf',
-		'xls'=>'application/vnd.ms-excel',
-		'xml'=>'application/xml',
-		'zip'=>'application/zip',
-
-		// open document format
-		'odt' => 'application/vnd.oasis.opendocument.text',
-		'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
-		'odp' => 'application/vnd.oasis.opendocument.presentation',
-		'odg' => 'application/vnd.oasis.opendocument.graphics',
-		'odc' => 'application/vnd.oasis.opendocument.chart',
-		'odf' => 'application/vnd.oasis.opendocument.formula',
-		'odb' => 'application/vnd.oasis.opendocument.database',
-		'odi' => 'application/vnd.oasis.opendocument.image',
-		'odm' => 'application/vnd.oasis.opendocument.text-master',
-		'ott' => 'application/vnd.oasis.opendocument.text-template',
-		'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
-		'otp' => 'application/vnd.oasis.opendocument.presentation-template',
-		'otg' => 'application/vnd.oasis.opendocument.graphics-template'
-		
-	);
-?>
diff --git a/ecrire/maj/vieille_base/charger.php b/ecrire/maj/vieille_base/charger.php
deleted file mode 100644
index 60c0ac2f52..0000000000
--- a/ecrire/maj/vieille_base/charger.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2008                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-include_spip('base/abstract_sql');
-include_spip('inc/plugin');
-
-function maj_vieille_base_charger_dist($version_cible){
-	$vieilles_bases = array(
-	'1.813'=>'1813',
-	'1.821'=>'1821',
-	'1.915'=>'1915',
-	'1.917'=>'1917',
-	'1.927'=>'1927',
-	'10000'=>'10000',
-	'12000'=>'13000',
-	);
-	$version = false;
-	foreach($vieilles_bases as $v=>$n){
-		if (!$version OR spip_version_compare($v,$version_cible,'<'))
-			$version = $n;
-	}
-
-	/*
-	include_spip('base/serial');
-	include_spip('base/auxiliaires');
-	$GLOBALS['nouvelle_base']['tables_principales'] = $GLOBALS['tables_principales'];
-	$GLOBALS['nouvelle_base']['tables_auxiliaires'] = $GLOBALS['tables_auxiliaires'];*/
-
-	unset($GLOBALS['tables_principales']);
-	unset($GLOBALS['tables_auxiliaires']);
-	unset($GLOBALS['tables_images']);
-	unset($GLOBALS['tables_sequences']);
-	unset($GLOBALS['tables_documents']);
-	unset($GLOBALS['tables_mime']);
-
-	// chargera les descriptions de table
-	$create = charger_fonction('create',"maj/vieille_base/$version");
-	if (!isset($GLOBALS['tables_auxiliaires']['spip_meta']['field']['impt']))
-			$GLOBALS['tables_auxiliaires']['spip_meta']['field']['impt'] = "ENUM('non', 'oui') DEFAULT 'oui' NOT NULL";
-
-	return $version;
-}
-
-?>
diff --git a/ecrire/maj/vieille_base/create.php b/ecrire/maj/vieille_base/create.php
deleted file mode 100644
index 361c3374a5..0000000000
--- a/ecrire/maj/vieille_base/create.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-/***************************************************************************\
- *  SPIP, Systeme de publication pour l'internet                           *
- *                                                                         *
- *  Copyright (c) 2001-2008                                                *
- *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
- *                                                                         *
- *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
- *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
-
-if (!defined("_ECRIRE_INC_VERSION")) return;
-
-$serveur_vieille_base =0;
-
-function spip_create_vieille_table($table,$fields,$keys,$autoinc){
-	$serveur = $GLOBALS['serveur_vieille_base'];
-	sql_create($table,$fields,$keys,$autoinc,false,$serveur);
-}
-
-function maj_vieille_base_create_dist($version_cible){
-
-	$charger = charger_fonction('charger','maj/vieille_base');
-	$version = $charger($version_cible);
-
-	// choisir un nouveau prefixe de table, le noter, et switcher en redefinissant le serveur
-	$new_prefixe = "XXspip$version";
-	// ici on ecrit la meta dans la table 'officielle'
-	ecrire_meta('restauration_table_prefix',$new_prefixe,'non');
-	ecrire_meta('vieille_version_installee',$version_cible,'non');
-	$metas = $GLOBALS['meta'];
-	
-	$prefixe_source = $GLOBALS['connexions'][0]['prefixe'];
-	$GLOBALS['serveur_vieille_base'] = 0;
-	$GLOBALS['connexions'][$GLOBALS['serveur_vieille_base']] = $GLOBALS['connexions'][0];
-	$GLOBALS['connexions'][$GLOBALS['serveur_vieille_base']]['prefixe'] = $new_prefixe;
-	lire_metas();
-	
-	if (!isset($GLOBALS['meta']['restauration_table_prefix_source'])) {
-
-		$create = charger_fonction('create',"maj/vieille_base/$version");
-		$create();
-	
-		// reecrire les metas dans la table provisoire
-		foreach($metas as $k=>$v)
-			ecrire_meta($k,$v);
-		ecrire_meta('restauration_table_prefix_source',$prefixe_source,'non');
-	
-		// noter le numero de version installee
-		//
-		// Exception lorsque la version est entre 10000 et 12000
-		// car ce qui est utilise est la base au moment du SVN 10000
-		// qui avait url_propre dans les champs de tous les objets
-		// mais un spip_version type 1.945 (et non 10000). 
-		// si on laisse 10000, les mise a jour de url_propre ne se font pas.
-		if ($version == 10000) $version = 1.945;
-		ecrire_meta('version_installee',$version,'non');
-	}
-	
-	if ($version_cible!=$GLOBALS['meta']['version_installee']) {
-		// upgrader jusqu'a la cible
-		include_spip('base/upgrade');
-		maj_base($version_cible);
-	}
-
-}
-
-
-?>
-- 
GitLab