From f210c656c56d2d8d95f0f03a7a3396202e5434c0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 3 Sep 2005 01:41:55 +0000 Subject: [PATCH] New: Ajout de la notion de contacts sur les contrats --- mysql/migration/1.1.0-2.0.0.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/mysql/migration/1.1.0-2.0.0.sql b/mysql/migration/1.1.0-2.0.0.sql index 127bfa0d86a..27bf08335b1 100644 --- a/mysql/migration/1.1.0-2.0.0.sql +++ b/mysql/migration/1.1.0-2.0.0.sql @@ -1767,3 +1767,25 @@ create table llx_projet_task_actors )type=innodb; + + +create table llx_contrat_contact +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + datecreate datetime, + statut smallint DEFAULT 0, + nature varchar(80), + + fk_contrat integer NOT NULL, + fk_socpeople integer NOT NULL + +)type=innodb; + + +ALTER TABLE llx_contrat_contact + ADD INDEX idx_contrat_contact_fk_contrat (fk_contrat); + +ALTER TABLE llx_contrat_contact + ADD CONSTRAINT idx_contrat_contact_fk_contrat + FOREIGN KEY (fk_contrat) REFERENCES llx_contrat(rowid); +