From 86eb028beba1a0fbffd95c4198bfc2b8a0f98b1d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 4 Nov 2017 15:25:52 +0100 Subject: [PATCH] Repair datec empty for products --- htdocs/install/mysql/migration/repair.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/install/mysql/migration/repair.sql b/htdocs/install/mysql/migration/repair.sql index 7bc403fd3b3..f2845490f67 100755 --- a/htdocs/install/mysql/migration/repair.sql +++ b/htdocs/install/mysql/migration/repair.sql @@ -122,6 +122,8 @@ delete from llx_adherent_extrafields where fk_object not in (select rowid from l delete from llx_product_extrafields where fk_object not in (select rowid from llx_product); --delete from llx_societe_commerciaux where fk_soc not in (select rowid from llx_societe); +UPDATE llx_product SET datec = tms WHERE datec IS NULL; + -- Clean stocks