1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

Support for virtual foreign keys

This commit is contained in:
Jakub Vrana
2010-10-29 13:58:08 +02:00
parent 43f936a0d8
commit 753909ecea
5 changed files with 29 additions and 17 deletions

View File

@@ -550,8 +550,9 @@ function hidden_fields_get() {
* @return array array($col => array())
*/
function column_foreign_keys($table) {
global $adminer;
$return = array();
foreach (foreign_keys($table) as $foreign_key) {
foreach ($adminer->foreignKeys($table) as $foreign_key) {
foreach ($foreign_key["source"] as $val) {
$return[$val][] = $foreign_key;
}