New: Ajout de fk_projet dans table des contrats.

This commit is contained in:
Laurent Destailleur
2005-07-15 23:34:04 +00:00
parent 22ddfd5f06
commit 1fcdbb24f6
2 changed files with 9 additions and 7 deletions

View File

@@ -326,14 +326,16 @@ delete from llx_rights_def where id=73;
alter table llx_facturedet add fk_code_ventilation integer NOT NULL DEFAULT 0;
alter table llx_contrat change fk_user_cloture fk_user_cloture integer;
alter table llx_contrat change fk_user_cloture fk_user_cloture integer;
alter table llx_contrat change fk_user_mise_en_service fk_user_mise_en_service integer;
alter table llx_contrat add datec datetime after tms;
alter table llx_contrat add date_contrat datetime after datec;
alter table llx_contrat change enservice statut SMALLINT(6) DEFAULT 0;
alter table llx_contrat add fk_commercial_signature integer NOT NULL after fk_soc;
alter table llx_contrat change enservice statut smallint(6) default 0;
alter table llx_contrat add datec datetime after tms;
alter table llx_contrat add date_contrat datetime after datec;
alter table llx_contrat add fk_projet integer after fk_soc;
alter table llx_contrat add fk_commercial_signature integer NOT NULL after fk_projet;
alter table llx_contrat add fk_commercial_suivi integer NOT NULL after fk_commercial_signature;
alter table llx_contrat add facture smallint(6) default 0;
alter table llx_facturedet add date_start date;
alter table llx_facturedet add date_end date;

View File

@@ -33,11 +33,11 @@ create table llx_contrat
fin_validite datetime,
date_cloture datetime,
fk_soc integer NOT NULL,
fk_projet integer,
fk_commercial_signature integer NOT NULL,
fk_commercial_suivi integer NOT NULL,
fk_user_author integer NOT NULL default 0,
fk_user_mise_en_service integer,
fk_user_cloture integer
)type=innodb;