1
0
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:
Jakub Vrana
2010-07-14 16:02:50 +02:00
parent 1e2d4977bd
commit a1bc3cc9cb
3 changed files with 6 additions and 1 deletions

View File

@@ -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) {