- PostgreSQL: Add SQL operator to select
- PostgreSQL: Hide only partitions, not all inherited tables from menu
- PostgreSQL 11-: Avoid duplicate oid in table status (bug #1089)
+- Elasticsearch: Support dropping aliases
- Plugins: Methods processList() and killProcess()
## Adminer 5.3.0 (released 2025-05-04)
}
}
- /** Drop types
- * @param list<string> $tables
- */
+ function drop_views(array $tables): bool {
+ $return = connection()->rootQuery('_aliases', array('actions' => array_map(function ($table) {
+ return array('remove' => array('index' => '*', 'alias' => $table));
+ }, $tables)), 'POST');
+ return $return && !$return['errors'];
+ }
+
function drop_tables(array $tables): bool {
$return = true;
foreach ($tables as $table) { //! convert to bulk api
$return = $return && connection()->rootQuery(urlencode($table), null, 'DELETE');
}
-
return $return;
}