diff --git a/mysql/migration/0.3.0-0.4.0.sql b/mysql/migration/0.3.0-0.4.0.sql index 27ffa7300e5..08e81ea8aab 100644 --- a/mysql/migration/0.3.0-0.4.0.sql +++ b/mysql/migration/0.3.0-0.4.0.sql @@ -4,4 +4,20 @@ -- alter table llx_product add fk_product_type integer default 0 ; -alter table llx_product add duration varchar(6) ; \ No newline at end of file +alter table llx_product add duration varchar(6) ; + +create table llx_contrat +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms timestamp, + enservice tinyint, + mise_en_service datetime, + fin_validite datetime, + date_cloture datetime, + fk_soc integer NOT NULL, + fk_product integer NOT NULL, + fk_facture integer NOT NULL default 0, + fk_user_author integer NOT NULL, + fk_user_mise_en_service integer NOT NULL, + fk_user_cloture integer NOT NULL +);