MS SQL: Support foreign keys to other DB
This commit is contained in:
parent
f37a878b62
commit
03961bbe1b
|
@ -542,6 +542,7 @@ WHERE OBJECT_NAME(i.object_id) = " . q($table)
|
||||||
$return = array();
|
$return = array();
|
||||||
foreach (get_rows("EXEC sp_fkeys @fktable_name = " . q($table)) as $row) {
|
foreach (get_rows("EXEC sp_fkeys @fktable_name = " . q($table)) as $row) {
|
||||||
$foreign_key = &$return[$row["FK_NAME"]];
|
$foreign_key = &$return[$row["FK_NAME"]];
|
||||||
|
$foreign_key["db"] = $row["PKTABLE_QUALIFIER"];
|
||||||
$foreign_key["table"] = $row["PKTABLE_NAME"];
|
$foreign_key["table"] = $row["PKTABLE_NAME"];
|
||||||
$foreign_key["source"][] = $row["FKCOLUMN_NAME"];
|
$foreign_key["source"][] = $row["FKCOLUMN_NAME"];
|
||||||
$foreign_key["target"][] = $row["PKCOLUMN_NAME"];
|
$foreign_key["target"][] = $row["PKCOLUMN_NAME"];
|
||||||
|
|
|
@ -6,6 +6,7 @@ SQLite: Quote strings stored in integer columns in export (bug #696)
|
||||||
SQLite: Handle error in altering table (bug #697)
|
SQLite: Handle error in altering table (bug #697)
|
||||||
SQLite: Allow setting auto increment for empty tables
|
SQLite: Allow setting auto increment for empty tables
|
||||||
SQLite: Preserve auto increment when recreating table
|
SQLite: Preserve auto increment when recreating table
|
||||||
|
MS SQL: Support foreign keys to other DB
|
||||||
|
|
||||||
Adminer 4.7.2 (released 2019-07-18):
|
Adminer 4.7.2 (released 2019-07-18):
|
||||||
Do not attempt logging in without password (bug #676)
|
Do not attempt logging in without password (bug #676)
|
||||||
|
|
Loading…
Reference in a new issue