Upgrade added SET SESSION innodb_strict_mode=OFF, for row size too large problem

This commit is contained in:
OpenXE 2022-12-06 12:16:01 +00:00
parent 264bc56365
commit 8159ae4346

View File

@ -462,6 +462,7 @@ function mustal_calculate_db_upgrade(array $compare_def, array $db_def, array &$
$compare_differences = mustal_compare_table_array($compare_def,"in JSON",$db_def,"in DB",true);
if (count($compare_differences) > 0) {
$upgrade_sql[] = ("SET SQL_MODE='ALLOW_INVALID_DATES';");
$upgrade_sql[] = ("SET SESSION innodb_strict_mode=OFF;");
}
foreach ($compare_differences as $compare_difference) {