]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Don't reset table comments
authorJakub Vrana <jakub@vrana.cz>
Sun, 23 May 2021 09:45:57 +0000 (11:45 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 23 May 2021 09:45:57 +0000 (11:45 +0200)
adminer/drivers/pgsql.inc.php
changes.txt

index d99efdd108f3d72d4271a5a38fa5289d0781d5da..198e642945a764f03e51cf21e98648fc35a3c833 100644 (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 != "") {
index a9a2c3d22a9ba7db7c32fd1cee59af38277db1b7..08e7e9828d8578b058aece5143c7ca1542060c31 100644 (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):