mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 20:01:25 +02:00
MS SQL: Foreign key in create table
This commit is contained in:
@@ -425,6 +425,9 @@ WHERE OBJECT_NAME(i.object_id) = " . q($table)
|
||||
if ($table != $name) {
|
||||
queries("EXEC sp_rename " . q(table($table)) . ", " . q($name));
|
||||
}
|
||||
if ($foreign) {
|
||||
$alter[""] = $foreign;
|
||||
}
|
||||
foreach ($alter as $key => $val) {
|
||||
if (!queries("ALTER TABLE " . idf_escape($name) . " $key" . implode(",", $val))) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user