mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
SQLite doesn't support primary key modification
This commit is contained in:
@@ -6,6 +6,10 @@ if (ereg("MyISAM|Maria", $table_status["Engine"])) {
|
||||
$index_types[] = "FULLTEXT";
|
||||
}
|
||||
$indexes = indexes($TABLE);
|
||||
if ($jush == "sqlite") { // doesn't support primary key
|
||||
unset($index_types[0]);
|
||||
unset($indexes[""]);
|
||||
}
|
||||
if ($_POST && !$error && !$_POST["add"]) {
|
||||
$alter = array();
|
||||
foreach ($_POST["indexes"] as $index) {
|
||||
|
Reference in New Issue
Block a user