mustal bugfix create table key type

This commit is contained in:
OpenXE 2023-04-24 16:49:34 +02:00
parent b82d17d6f4
commit f0f468c94e

View File

@ -586,11 +586,11 @@ function mustal_calculate_db_upgrade(array $compare_def, array $db_def, array &$
$keystring = "PRIMARY KEY "; $keystring = "PRIMARY KEY ";
} else { } else {
if(array_key_exists('Index_type', $key)) { // if(array_key_exists('Index_type', $key)) {
$index_type = $key['Index_type']; // $index_type = $key['Index_type'];
} else { // } else {
$index_type = ""; $index_type = "";
} // }
$keystring = $index_type." ".$key['Non_unique']." KEY `".$key['Key_name']."` "; $keystring = $index_type." ".$key['Non_unique']." KEY `".$key['Key_name']."` ";
} }