1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 16:44:17 +02:00

PostgreSQL: Export DROP SEQUENCE if dropping table

This commit is contained in:
Jakub Vrana
2018-01-22 14:33:21 +01:00
parent eee9a62c8f
commit 993dce398d
5 changed files with 8 additions and 5 deletions

View File

@@ -715,7 +715,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
return true;
}
function create_sql($table, $auto_increment) {
function create_sql($table, $auto_increment, $style) {
global $connection;
$return = $connection->result("SELECT sql FROM sqlite_master WHERE type IN ('table', 'view') AND name = " . q($table));
foreach (indexes($table) as $name => $index) {