add fk_project to warehouse table

This commit is contained in:
Christophe Battarel 2021-04-08 16:46:52 +02:00
parent de7c3f5e0c
commit 4f413ca983
2 changed files with 3 additions and 0 deletions

View File

@ -372,3 +372,5 @@ insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) v
ALTER TABLE llx_facture_fourn ADD COLUMN date_closing datetime DEFAULT NULL after date_valid;
ALTER TABLE llx_facture_fourn ADD COLUMN fk_user_closing integer DEFAULT NULL after fk_user_valid;
ALTER TABLE llx_entrepot ADD COLUMN fk_project INTEGER DEFAULT NULL AFTER entity; -- project associated to warehouse if any

View File

@ -25,6 +25,7 @@ create table llx_entrepot
datec datetime,
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
entity integer DEFAULT 1 NOT NULL, -- multi company id
fk_project integer DEFAULT NULL, -- project associated to warehouse if any
description text,
lieu varchar(64), -- resume lieu situation
address varchar(255),