1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

Add truncate_sql to PostgreSQL

This commit is contained in:
Jakub Vrana
2018-02-06 16:24:12 +01:00
parent 19653de764
commit b500a46f9a
2 changed files with 5 additions and 0 deletions

View File

@@ -747,6 +747,10 @@ AND typelem = 0"
return rtrim($return, ';');
}
function truncate_sql($table) {
return "TRUNCATE " . table($table);
}
function trigger_sql($table) {
$status = table_status($table);
$return = "";