From b86b9d8daff481cbda958454a15e97bfc933ed9a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Jan 2004 23:37:11 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20plantage=20script=20migration=20su?= =?UTF-8?q?ite=20=E0=20un=20commentaire=20(mysql=20d=E9conne=20sur=20ce=20?= =?UTF-8?q?point).=20Quand=20un=20paiement=20est=20saisi,=20une=20transact?= =?UTF-8?q?ion=20=E9quivalente=20est=20inscrite=20sur=20le=20compte=20banc?= =?UTF-8?q?aire.=20Cependant,=20une=20fois=20l'op=E9ration=20faite,=20plus?= =?UTF-8?q?=20rien=20ne=20lie=20le=20paiement=20=E0=20la=20transaction.=20?= =?UTF-8?q?Afin=20de=20conserver=20ce=20lien=20pour=20une=20fonctionnalit?= =?UTF-8?q?=E9=20future=20(exemple=20mettre=20un=20warning=20en=20cas=20de?= =?UTF-8?q?=20suppression=20d'une=20transaction=20bancaire=20issue=20d'un?= =?UTF-8?q?=20paiement),=20on=20rajoute=20un=20champ=20pour=20l'id=20de=20?= =?UTF-8?q?la=20transaction.=20bancaire=20sur=20la=20ligne=20du=20paiement?= =?UTF-8?q?=20qui=20l'a=20g=E9n=E9r=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/1.1.0-1.2.0-RC1.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mysql/migration/1.1.0-1.2.0-RC1.sql b/mysql/migration/1.1.0-1.2.0-RC1.sql index 6b4d81a1c45..e14826a9fb3 100644 --- a/mysql/migration/1.1.0-1.2.0-RC1.sql +++ b/mysql/migration/1.1.0-1.2.0-RC1.sql @@ -22,7 +22,7 @@ alter table llx_socpeople add birthday date after address ; create table llx_birthday_alert ( rowid integer AUTO_INCREMENT PRIMARY KEY, - fk_contact integer, -- pointe sur llx_socpeople + fk_contact 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_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 ( rowid integer AUTO_INCREMENT PRIMARY KEY,