From db432e2cc424ae471006152eb19ccf739ed4190a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 21 May 2016 18:12:03 +0200 Subject: [PATCH] Fix lot number --- htdocs/install/mysql/migration/3.9.0-4.0.0.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/install/mysql/migration/3.9.0-4.0.0.sql b/htdocs/install/mysql/migration/3.9.0-4.0.0.sql index f996ca3677a..5342dd56f7b 100644 --- a/htdocs/install/mysql/migration/3.9.0-4.0.0.sql +++ b/htdocs/install/mysql/migration/3.9.0-4.0.0.sql @@ -463,9 +463,15 @@ ALTER TABLE llx_advtargetemailing ADD UNIQUE INDEX uk_advtargetemailing_name (na update llx_product_batch set batch = '000000' where batch = 'Non défini'; update llx_product_batch set batch = '000000' where batch = 'Non défini'; update llx_product_batch set batch = '000000' where batch = 'Undefined'; + +update llx_product_batch set batch = '000000' where batch = ''; +update llx_product_batch set batch = '000000' where batch = ''; +update llx_product_batch set batch = '000000' where batch = ''; + update llx_product_lot set batch = '000000' where batch = 'Undefined'; update llx_stock_mouvement set batch = '000000' where batch = 'Undefined'; + -- At end (higher risk of error) -- VMYSQL4.1 ALTER TABLE llx_c_type_resource CHANGE COLUMN rowid rowid integer NOT NULL AUTO_INCREMENT;