diff --git a/htdocs/install/mysql/tables/llx_product_fournisseur_price.sql b/htdocs/install/mysql/tables/llx_product_fournisseur_price.sql index 42f9f836471..3adb886fa31 100644 --- a/htdocs/install/mysql/tables/llx_product_fournisseur_price.sql +++ b/htdocs/install/mysql/tables/llx_product_fournisseur_price.sql @@ -1,6 +1,7 @@ -- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2009 Laurent Destailleur +-- Copyright (C) 2003 Rodolphe Quiedeville +-- Copyright (C) 2009-2011 Laurent Destailleur +-- Copyright (C) 2009-2011 Regis Houssin -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by @@ -20,6 +21,7 @@ create table llx_product_fournisseur_price ( rowid integer AUTO_INCREMENT PRIMARY KEY, + entity integer DEFAULT 1 NOT NULL, -- multi company id datec datetime, tms timestamp, fk_product_fournisseur integer NOT NULL, -- deprecated @@ -30,6 +32,5 @@ create table llx_product_fournisseur_price price double(24,8) DEFAULT 0, quantity double, unitprice double(24,8) DEFAULT 0, - fk_user integer, - entity integer DEFAULT 1 NOT NULL, -- multi company id + fk_user integer )ENGINE=innodb;