mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
PostgreSQL: Support index algorithms
This commit is contained in:
@@ -360,7 +360,11 @@ class Adminer {
|
||||
. ($index["descs"][$key] ? " DESC" : "")
|
||||
;
|
||||
}
|
||||
echo "<tr title='" . h($name) . "'><th>$index[type]<td>" . implode(", ", $print) . "\n";
|
||||
|
||||
echo "<tr title='" . h($name) . "'>";
|
||||
echo "<th>$index[type]" . ($index['algorithm'] != first(driver()->indexMethods()) ? " ($index[algorithm])" : "");
|
||||
echo "<td>" . implode(", ", $print);
|
||||
echo "\n";
|
||||
}
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
@@ -258,6 +258,14 @@ abstract class SqlDriver {
|
||||
return !is_view($table_status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return list of supported index methods, first one is default
|
||||
* @return list<string>
|
||||
*/
|
||||
function indexMethods(): array {
|
||||
return array();
|
||||
}
|
||||
|
||||
/** Get defined check constraints
|
||||
* @return string[] [$name => $clause]
|
||||
*/
|
||||
|
Reference in New Issue
Block a user