"bigint(21) DEFAULT '0' NOT NULL", "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", // nombre de segments dans url "segments" => "SMALLINT(3) DEFAULT '1' NOT NULL", // URL permanente, prioritaire "perma" => "TINYINT(1) DEFAULT '0' NOT NULL", ); $spip_urls_key = array( "PRIMARY KEY" => "id_parent, url", "KEY type" => "type, id_objet"); $tables_auxiliaires['spip_urls'] = array( 'field' => &$spip_urls, 'key' => &$spip_urls_key); return $tables_auxiliaires; } ?>