From a001a3a06187d8093e510793ea08f7fc96440ad4 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 19 Feb 2025 15:02:11 +0100 Subject: [PATCH] SQLite: Fix altering forign keys (bug #841) --- adminer/drivers/sqlite.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/drivers/sqlite.inc.php b/adminer/drivers/sqlite.inc.php index e8ede848..81670fc9 100644 --- a/adminer/drivers/sqlite.inc.php +++ b/adminer/drivers/sqlite.inc.php @@ -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) { diff --git a/changes.txt b/changes.txt index 7b2947e7..7e5f3af1 100644 --- a/changes.txt +++ b/changes.txt @@ -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