1
0
Fork 0

Issue 10768: Avoid MySQL problems when upgrading both index and structure

This commit is contained in:
Michael 2021-09-26 17:13:26 +00:00
parent 2a88262732
commit f26226229a

View file

@ -673,6 +673,11 @@ class DBStructure
$current_field_definition = DBA::cleanQuery(implode(",", $field_definition));
$new_field_definition = DBA::cleanQuery(implode(",", $parameters));
if ($current_field_definition != $new_field_definition) {
// When the field structure changes then we will not perform the special index handling for MySQL.
// See issue #10768
$is_unique = false;
$temp_name = $name;
$sql2 = self::modifyTableField($fieldname, $parameters);
if ($sql3 == "") {
$sql3 = "ALTER" . $ignore . " TABLE `" . $temp_name . "` " . $sql2;