mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01:00
Upgrade added SET SESSION innodb_strict_mode=OFF, for row size too large problem
This commit is contained in:
parent
264bc56365
commit
8159ae4346
@ -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);
|
$compare_differences = mustal_compare_table_array($compare_def,"in JSON",$db_def,"in DB",true);
|
||||||
if (count($compare_differences) > 0) {
|
if (count($compare_differences) > 0) {
|
||||||
$upgrade_sql[] = ("SET SQL_MODE='ALLOW_INVALID_DATES';");
|
$upgrade_sql[] = ("SET SQL_MODE='ALLOW_INVALID_DATES';");
|
||||||
|
$upgrade_sql[] = ("SET SESSION innodb_strict_mode=OFF;");
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($compare_differences as $compare_difference) {
|
foreach ($compare_differences as $compare_difference) {
|
||||||
|
Loading…
Reference in New Issue
Block a user