]> git.joonet.de Git - adminer.git/commitdiff
SQLite: Fix altering forign keys (bug #841)
authorJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 14:02:11 +0000 (15:02 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 14:02:11 +0000 (15:02 +0100)
adminer/drivers/sqlite.inc.php
changes.txt

index e8ede8486619069eaa3b53ba204c7b4938bad453..81670fc96f4c4ebfe9858daa8d8e6d2a085af633 100644 (file)
@@ -523,7 +523,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
                return true;
        }
 
-       function recreate_table($table, $name, $fields, $originals, $foreign, $auto_increment, $indexes = array()) {
+       function recreate_table($table, $name, $fields, $originals, $foreign, $auto_increment = 0, $indexes = array()) {
                global $connection;
                if ($table != "") {
                        if (!$fields) {
index 7b2947e7beb3d5448737b57eac2b19d62806c916..7e5f3af131e2b7651e3ba3c1642f58da49312479 100644 (file)
@@ -1,6 +1,7 @@
 Adminer 4.16.0-dev:
 MySQL: Fix saving bit(64) values (bug #839)
 PostgreSQL: Preserve whitespace in EXPLAIN (bug #827)
+SQLite: Fix altering forign keys (bug #841)
 MS SQL: Foreign keys in non-default schema (bug #833)
 Oracle: Include tables granted by other user
 MongoDB: Execute commands against the selected DB