From 1bedeea8c3e802a9788f55b48ba274f8f227c61c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville <rodolphe@quiedeville.org> Date: Tue, 17 Feb 2004 09:32:04 +0000 Subject: [PATCH] Ajout ckef departements et regions --- mysql/foreign_keys.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mysql/foreign_keys.sql b/mysql/foreign_keys.sql index 9f09ed5f4e2..a4ef6eedd0b 100644 --- a/mysql/foreign_keys.sql +++ b/mysql/foreign_keys.sql @@ -41,4 +41,7 @@ ALTER TABLE llx_facturedet ADD FOREIGN KEY (fk_facture) REFERENCES llx_fa 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_socpeople ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); + +ALTER TABLE llx_c_departements ADD FOREIGN KEY (fk_region) REFERENCES llx_c_regions (code_region); +ALTER TABLE llx_c_regions ADD FOREIGN KEY (fk_pays) REFERENCES llx_c_pays (rowid); \ No newline at end of file -- GitLab