phpcompta-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpcompta-support] Patch 2.3.3.0 est là


From: Alain Vaugham
Subject: Re: [Phpcompta-support] Patch 2.3.3.0 est là
Date: Tue, 31 Jul 2007 13:05:34 +0200
User-agent: KMail/1.7.2

Le Mardi 31 Juillet 2007 12:27, Dany De Bontridder a écrit :
| Alain Vaugham writes:
| > Warning: pg_query() [function.pg-query]: Query failed: ERREUR: la
| > contrainte «$1» n'existe pas in /var/www/phpcompta/include/postgres.php
| > on line 133 ERROR : alter table jrn_action drop constraint "$1"
|
| Bon pas le choix on y va à la hache: ouvrir le fichier
| html/admin/sql/patch/upgrade30.sql et supprimer la ligne "alter table
| jrn_action drop ...".
|
| Je vais devoir vérifier tout cela ce soir.
|
Il n'y a aucune amélioration.

Ce que j'ai fait :
# vim /var/www/phpcompta/html/admin/sql/patch/upgrade30.sql
supprimé cette ligne :
alter table jrn_action drop constraint "$1";

vérifié :
#cat /var/www/phpcompta/html/admin/sql/patch/upgrade30.sql begin ;
alter table jrn_def drop constraint "$1";

update jrn_action set ja_jrn_type='ODS' where ja_jrn_type='OD ';
update jrn_def set jrn_def_type='ODS' where jrn_def_type = 'OD ';
update jrn_type set jrn_type_id='ODS' where jrn_type_id ='OD ';

alter table jrn_action add constraint "$1" foreign key (ja_jrn_type) 
references   jrn_type(jrn_type_id);

alter table jrn_def add constraint "$1" FOREIGN KEY (jrn_def_type) REFERENCES 
jrn_type(jrn_type_id);
update version set val=31;
commit;

commit;

Remis les droits www-data en récursifs sur /var/www/
Redémarré postgresql et apache
Refait le setup depuis le client :
[...]
 Congratulation : Test successfull
Patching databases
Patching Alka 2006 from the version 30 to the version 30 begin ;
alter table jrn_def drop constraint "$1";

Warning: pg_query() [function.pg-query]: Query failed: ERREUR: la contrainte 
«$1» n'existe pas in /var/www/phpcompta/include/postgres.php on line 133
ERROR : alter table jrn_def drop constraint "$1" 


A ce soir ;)
J'ai comme l'impression qu'il va falloir que je me mette quand même à 
apprendre à faire un dump de ma bd...

-- 
Cordialement

Alain Vaugham
----------------------------------------------------------------
[PUB] Signature numérique GPG de ce courrier: 0xD26D18BC

Attachment: pgp93WCok60uB.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]