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;