Skip to content

Commit

Permalink
PostgreSQL: Don't reset table comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed May 23, 2021
1 parent ea1acfc commit dadbb37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/drivers/pgsql.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ function alter_table($table, $name, $fields, $foreign, $comment, $engine, $colla
} elseif ($alter) {
array_unshift($queries, "ALTER TABLE " . table($table) . "\n" . implode(",\n", $alter));
}
if ($table != "" || $comment != "") {
if ($comment !== null) {
$queries[] = "COMMENT ON TABLE " . table($name) . " IS " . q($comment);
}
if ($auto_increment != "") {
Expand Down
1 change: 1 addition & 0 deletions changes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Adminer 4.8.2-dev:
Support multi-line table comments
MySQL: Use ST_SRID() instead of SRID() for MySQL 8 (PR #418)
PostgreSQL: Don't reset table comments (regression from 4.2.0)
PostgreSQL PDO: Allow editing rows identified by boolean column (PR #380)

Adminer 4.8.1 (released 2021-05-14):
Expand Down

0 comments on commit dadbb37

Please sign in to comment.