From b6bcffa4d9487a90997575bc6e405a671f2de1e1 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 18 Apr 2013 09:44:33 +0200 Subject: [PATCH] Fix: missing field --- .../install/mysql/migration/3.3.0-3.4.0.sql | 1 + .../tables/llx_product_fournisseur_price.sql | 26 +++++++++---------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/htdocs/install/mysql/migration/3.3.0-3.4.0.sql b/htdocs/install/mysql/migration/3.3.0-3.4.0.sql index 4bc303e932d..b8542349f5f 100755 --- a/htdocs/install/mysql/migration/3.3.0-3.4.0.sql +++ b/htdocs/install/mysql/migration/3.3.0-3.4.0.sql @@ -180,6 +180,7 @@ UPDATE llx_c_tva set localtax1=0, localtax1_type='0' where localtax1_type = '7'; UPDATE llx_c_tva set localtax2=0, localtax2_type='0' where localtax2_type = '7'; ALTER TABLE llx_facture_fourn_det ADD COLUMN info_bits integer NOT NULL DEFAULT 0 after date_end; +ALTER TABLE llx_product_fournisseur_price ADD COLUMN info_bits integer NOT NULL DEFAULT 0 after tva_tx; ALTER TABLE llx_actioncomm ADD COLUMN code varchar(32) NULL after fk_action; diff --git a/htdocs/install/mysql/tables/llx_product_fournisseur_price.sql b/htdocs/install/mysql/tables/llx_product_fournisseur_price.sql index 2a26034c130..e48c3ce6f82 100644 --- a/htdocs/install/mysql/tables/llx_product_fournisseur_price.sql +++ b/htdocs/install/mysql/tables/llx_product_fournisseur_price.sql @@ -1,7 +1,7 @@ -- ============================================================================ -- Copyright (C) 2003 Rodolphe Quiedeville -- Copyright (C) 2009-2011 Laurent Destailleur --- Copyright (C) 2009-2012 Regis Houssin +-- Copyright (C) 2009-2013 Regis Houssin -- Copyright (C) 2012 Juanjo Menent -- -- This program is free software; you can redistribute it and/or modify @@ -21,23 +21,23 @@ 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, + rowid integer AUTO_INCREMENT PRIMARY KEY, + entity integer DEFAULT 1 NOT NULL, -- multi company id + datec datetime, + tms timestamp, fk_product integer, - fk_soc integer, + fk_soc integer, ref_fourn varchar(30), - fk_availability integer, - price double(24,8) DEFAULT 0, + fk_availability integer, + price double(24,8) DEFAULT 0, quantity double, - remise_percent double NOT NULL DEFAULT 0, + remise_percent double NOT NULL DEFAULT 0, remise double NOT NULL DEFAULT 0, unitprice double(24,8) DEFAULT 0, - charges double(24,8) DEFAULT 0, + charges double(24,8) DEFAULT 0, unitcharges double(24,8) DEFAULT 0, - tva_tx double(6,3) NOT NULL, + tva_tx double(6,3) NOT NULL, info_bits integer NOT NULL DEFAULT 0, - fk_user integer, - import_key varchar(14) -- Import key + fk_user integer, + import_key varchar(14) -- Import key )ENGINE=innodb;