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: Dany De Bontridder
Subject: Re: [Phpcompta-support] Patch 2.3.3.0 est là
Date: Tue, 31 Jul 2007 13:12:17 +0200

Alain Vaugham writes:
#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;
Bon ben, apparemment les constraintes ne sont pas les même sur la BD belge et française tu peux supprimer l'autre ligne : alter table jrn_def drop constraint "$1"; Heureusement, que si l'opération ne fonctionne pas, la totalité est annulée, on ne risque pas d'ajouter d'incohérence ;) @+,
..D..




reply via email to

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