Code Duplication    Length = 4-5 lines in 2 locations

src/database/Postgres.php 2 locations

@@ 1437-1440 (lines=4) @@
1434
            }
1435
1436
            // Does this column have a comment?
1437
            if ($atts->fields['comment'] !== null) {
1438
                $this->clean($atts->fields['comment']);
1439
                $col_comments_sql .= "COMMENT ON COLUMN \"{$t->fields['relname']}\".\"{$atts->fields['attname']}\"  IS '{$atts->fields['comment']}';\n";
1440
            }
1441
1442
            $atts->moveNext();
1443
            $i++;
@@ 1560-1564 (lines=5) @@
1557
        }
1558
1559
        // Comment
1560
        if ($t->fields['relcomment'] !== null) {
1561
            $this->clean($t->fields['relcomment']);
1562
            $sql .= "\n-- Comment\n\n";
1563
            $sql .= "COMMENT ON TABLE \"{$t->fields['nspname']}\".\"{$t->fields['relname']}\" IS '{$t->fields['relcomment']}';\n";
1564
        }
1565
1566
        // Add comments on columns, if any
1567
        if ($col_comments_sql != '') {