New: Ajout de la notion de contacts sur les contrats

This commit is contained in:
Laurent Destailleur 2005-09-03 01:41:55 +00:00
parent dbf7739a0b
commit f210c656c5

View File

@ -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);