mirror of
https://github.com/vrana/adminer.git
synced 2025-08-07 15:16:44 +02:00
MySQL: Support index algorithms with MEMORY and NDB engines
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
## Adminer dev
|
## Adminer dev
|
||||||
- MySQL: Avoid warning on selecting tables with fulltext indexes (bug #1036)
|
- MySQL: Avoid warning on selecting tables with fulltext indexes (bug #1036)
|
||||||
|
- MySQL, PostgreSQL: Support index algorithms (bug #1030)
|
||||||
- PostgreSQL, CockroachDB: Creating partitioned tables (bug #1031)
|
- PostgreSQL, CockroachDB: Creating partitioned tables (bug #1031)
|
||||||
- PostgreSQL: Move partitioned tables from table list to parent table
|
- PostgreSQL: Move partitioned tables from table list to parent table
|
||||||
- PostgreSQL: Support index algorithms (bug #1030)
|
|
||||||
- PostgreSQL: Support calling functions returning table (bug #1040)
|
- PostgreSQL: Support calling functions returning table (bug #1040)
|
||||||
- Designs: adminer.css with 'prefers-color-scheme: dark' don't disable dark mode
|
- Designs: adminer.css with 'prefers-color-scheme: dark' don't disable dark mode
|
||||||
- Plugins: Method bodyClass() to add <body class>
|
- Plugins: Method bodyClass() to add <body class>
|
||||||
|
@@ -367,6 +367,10 @@ if (!defined('Adminer\DRIVER')) {
|
|||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function indexAlgorithms(array $tableStatus): array {
|
||||||
|
return (preg_match('~^(MEMORY|NDB)$~', $tableStatus["Engine"]) ? array("HASH", "BTREE") : array());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -558,6 +562,7 @@ if (!defined('Adminer\DRIVER')) {
|
|||||||
$return[$name]["columns"][] = $row["Column_name"];
|
$return[$name]["columns"][] = $row["Column_name"];
|
||||||
$return[$name]["lengths"][] = ($row["Index_type"] == "SPATIAL" ? null : $row["Sub_part"]);
|
$return[$name]["lengths"][] = ($row["Index_type"] == "SPATIAL" ? null : $row["Sub_part"]);
|
||||||
$return[$name]["descs"][] = null;
|
$return[$name]["descs"][] = null;
|
||||||
|
$return[$name]["algorithm"] = $row["Index_type"];
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user