bug #2568722 [designer] Compound key not shown

This commit is contained in:
Marc Delisle
2009-02-10 17:36:28 +00:00
parent 86c9ca89ca
commit 1de1044939
2 changed files with 5 additions and 3 deletions

View File

@@ -218,11 +218,12 @@ function get_all_keys($unique_only = false)
if ($unique_only && ! $index->isUnique()) {
continue;
}
$column = key($index->getColumns());
$keys[$schema . '.' .$table . '.' . $column] = 1;
$columns = $index->getColumns();
foreach ($columns as $column_name => $dummy) {
$keys[$schema . '.' .$table . '.' . $column_name] = 1;
}
}
}
return $keys;
}