suite …
pour info voici le problème :
le log m’a induit en erreur, la fonction créer base ne s’exécute pas correctement.
si j’exécute la requête de création de table :
CREATE TABLE spip_articles(
id_article bigint( 21 ) DEFAULT ‹ 0 › NOT NULL auto_increment,
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 ,
PRIMARY KEY ( id_article ) ,
KEY id_rubrique( id_rubrique ) ,
KEY id_secteur( id_secteur ) ,
KEY statut( statut, date )
)
MySQL a répondu:
Invalid default value for 'id_article'
autoincrement est incompatible avec default ‹ 0 ›
je fais les modifs et, si ca marche, je vous fais passer ma version de inc_base.php3
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.493 / Virus Database: 292 - Release Date: 25/06/2004