Permalink
Browse files

No foreign keys in alter table

  • Loading branch information...
1 parent 1370d29 commit bf8b62056052ec485109247780eb384874148d78 @vrana committed Aug 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/drivers/sqlite.inc.php
@@ -262,7 +262,7 @@ function is_view($table_status) {
function fk_support($table_status) {
global $connection;
- return !$connection->result("SELECT sqlite_compileoption_used('OMIT_FOREIGN_KEY')");
+ return $_GET["create"] == "" && !$connection->result("SELECT sqlite_compileoption_used('OMIT_FOREIGN_KEY')");
}
function fields($table) {

0 comments on commit bf8b620

Please sign in to comment.