Correction plantage script migration suite à un commentaire (mysql déconne sur ce point).
Quand un paiement est saisi, une transaction équivalente est inscrite sur le compte bancaire. Cependant, une fois l'opération faite, plus rien ne lie le paiement à la transaction. Afin de conserver ce lien pour une fonctionnalité future (exemple mettre un warning en cas de suppression d'une transaction bancaire issue d'un paiement), on rajoute un champ pour l'id de la transaction. bancaire sur la ligne du paiement qui l'a généré.
This commit is contained in:
parent
6d7a888ece
commit
b86b9d8daf
@ -22,7 +22,7 @@ alter table llx_socpeople add birthday date after address ;
|
|||||||
create table llx_birthday_alert
|
create table llx_birthday_alert
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
fk_contact integer, -- pointe sur llx_socpeople
|
fk_contact integer,
|
||||||
fk_user integer
|
fk_user integer
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -30,6 +30,9 @@ alter table llx_facture_fourn drop index facnumber ;
|
|||||||
alter table llx_facture_fourn add unique index (facnumber, fk_soc) ;
|
alter table llx_facture_fourn add unique index (facnumber, fk_soc) ;
|
||||||
|
|
||||||
|
|
||||||
|
alter table llx_paiement add fk_bank integer NOT NULL after note ;
|
||||||
|
alter table llx_paiementfourn add fk_bank integer NOT NULL after note ;
|
||||||
|
|
||||||
create table llx_co_fa
|
create table llx_co_fa
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user