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 0939ed2d94f2f2b19b65f121e10a07086060ffe3..452026d5615ac52ad5fd990a94adf8a7d8bae0e7 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,4 +30,6 @@ 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;
+
 
diff --git a/htdocs/install/mysql/tables/llx_facture_fourn.sql b/htdocs/install/mysql/tables/llx_facture_fourn.sql
index 272a8f4b4ad49a9ce121aa530ce4e040504d59a7..8d4a4ecdcbf1c87f9618dd8e87dfce52210eb03b 100644
--- a/htdocs/install/mysql/tables/llx_facture_fourn.sql
+++ b/htdocs/install/mysql/tables/llx_facture_fourn.sql
@@ -24,8 +24,12 @@
 create table llx_facture_fourn
 (
   rowid               integer AUTO_INCREMENT PRIMARY KEY,
+  
   facnumber           varchar(50) NOT NULL,
   entity              integer  DEFAULT 1 NOT NULL,	 -- multi company id
+
+  ref_ext             varchar(30),                  -- reference into an external system (not used by dolibarr)
+
   type		            smallint DEFAULT 0 NOT NULL,
   fk_soc              integer NOT NULL,