From 414c7d8e70afa6628ce6068ccc8bed3ea3015925 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 9 Feb 2004 15:07:27 +0000 Subject: [PATCH] Ajout contraintes --- mysql/foreign_keys.sql | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/mysql/foreign_keys.sql b/mysql/foreign_keys.sql index e9350868782..9f09ed5f4e2 100644 --- a/mysql/foreign_keys.sql +++ b/mysql/foreign_keys.sql @@ -1,5 +1,5 @@ -- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville +-- Copyright (C) 2003-2004 Rodolphe Quiedeville -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by @@ -27,14 +27,18 @@ ALTER TABLE llx_fichinter ADD INDEX (fk_soc); ALTER TABLE llx_socpeople ADD INDEX (fk_soc); -ALTER TABLE llx_fichinter ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); +ALTER TABLE llx_fichinter ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); -ALTER TABLE llx_propal ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); +ALTER TABLE llx_propal ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); -ALTER TABLE llx_facture ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); +ALTER TABLE llx_facture ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); -ALTER TABLE llx_facturedet ADD FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid); +ALTER TABLE llx_paiement_facture ADD FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid); +ALTER TABLE llx_paiement_facture ADD FOREIGN KEY (fk_paiement) REFERENCES llx_paiement (rowid); -ALTER TABLE llx_facture_tva_sum ADD FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid); -ALTER TABLE llx_socpeople ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); \ No newline at end of file +ALTER TABLE llx_facturedet ADD FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid); + +ALTER TABLE llx_facture_tva_sum ADD FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid); + +ALTER TABLE llx_socpeople ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); \ No newline at end of file