PostgreSQL: Don't reset table comments

This commit is contained in:
Jakub Vrana 2021-05-23 11:45:57 +02:00
parent ea1acfc8bc
commit dadbb37f00
2 changed files with 2 additions and 1 deletions

View file

@ -534,7 +534,7 @@ ORDER BY connamespace, conname") as $row) {
} 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 != "") {

View file

@ -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):