diff --git a/htdocs/install/mysql/migration/3.0.0-3.1.0.sql b/htdocs/install/mysql/migration/3.0.0-3.1.0.sql index 452026d5615..75e1c8fa16e 100755 --- a/htdocs/install/mysql/migration/3.0.0-3.1.0.sql +++ b/htdocs/install/mysql/migration/3.0.0-3.1.0.sql @@ -30,6 +30,7 @@ DELETE from llx_const where NAME = 'MAIN_MENUFRONT_BARRETOP'; DELETE from llx_const where NAME = 'MAIN_MENU_BARRELEFT'; DELETE from llx_const where NAME = 'MAIN_MENUFRONT_BARRELEFT'; -ALTER TABLE llx_facture_fourn ADD column ref_ext varchar(30) after entity; +ALTER TABLE llx_facture_fourn ADD column ref_ext varchar(30) after entity; +ALTER TABLE llx_commande_fournisseur ADD column ref_ext varchar(30) after entity; diff --git a/htdocs/install/mysql/tables/llx_commande_fournisseur.sql b/htdocs/install/mysql/tables/llx_commande_fournisseur.sql index 0e4cc18c81d..ba3275229a7 100644 --- a/htdocs/install/mysql/tables/llx_commande_fournisseur.sql +++ b/htdocs/install/mysql/tables/llx_commande_fournisseur.sql @@ -23,12 +23,16 @@ create table llx_commande_fournisseur ( rowid integer AUTO_INCREMENT PRIMARY KEY, - tms timestamp, - fk_soc integer NOT NULL, + ref varchar(30) NOT NULL, -- order number entity integer DEFAULT 1 NOT NULL, -- multi company id + + ref_ext varchar(30), -- reference into an external system (not used by dolibarr) ref_supplier varchar(30), + tms timestamp, + fk_soc integer NOT NULL, + fk_projet integer DEFAULT 0, -- projet auquel est rattache la commande date_creation datetime, -- date de creation date_valid datetime, -- date de validation