1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 11:34:10 +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

@@ -65,6 +65,10 @@ document.getElementById('username').focus();
echo "<a href='" . h(remove_from_uri("page")) . "&amp;page=last' title='" . lang('Page') . ": " . lang('last') . "'>&gt;&gt;</a>\n";
}
function foreignKeys($table) {
return foreign_keys($table);
}
function backwardKeys($table, $tableName) {
$return = array();
foreach (get_rows("SELECT TABLE_NAME, CONSTRAINT_NAME, COLUMN_NAME, REFERENCED_COLUMN_NAME