From e9d9954380adff4258ae9fa7551b7880a062e92a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 20 Jul 2018 18:33:14 +0200 Subject: [PATCH] FIX do not convert llx_const if mysql encrypt/decrypt is used --- htdocs/install/repair.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/install/repair.php b/htdocs/install/repair.php index ad63582c142..269d276d338 100644 --- a/htdocs/install/repair.php +++ b/htdocs/install/repair.php @@ -1087,6 +1087,9 @@ if ($ok && GETPOST('force_utf8_on_tables','alpha')) foreach($listoftables as $table) { + // do not convert llx_const if mysql encrypt/decrypt is used + if ($conf->db->dolibarr_main_db_encryption != 0 && preg_match('/\_const$/', $table)) continue; + print ''; print $table; $sql='ALTER TABLE '.$table.' CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci';