function alter_indexes($table, $alter) {
foreach ($alter as $val) {
- if (!queries(($val[2] ? "DROP INDEX" : "CREATE" . ($val[0] != "INDEX" ? " UNIQUE" : "") . " INDEX " . idf_escape(uniqid($table . "_")) . " ON " . table($table)) . " $val[1]")) { //! primary key must be created in CREATE TABLE
+ if (!queries(($val[2] ? "DROP INDEX" : "CREATE" . ($val[0] != "INDEX" ? " UNIQUE" : "") . " INDEX " . idf_escape(uniqid($table . "_")) . " ON " . table($table)) . " $val[1]")) {
return false;
}
}
$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) {
? Geometry support
SQLite:
+ASC and DESC instead of text length in index
Delimiter in export and SQL command
Backward keys in Editor