@@ 1465-1468 (lines=4) @@ | ||
1462 | } |
|
1463 | ||
1464 | // Does this column have a comment? |
|
1465 | if ($atts->fields['comment'] !== null) { |
|
1466 | $this->clean($atts->fields['comment']); |
|
1467 | $col_comments_sql .= "COMMENT ON COLUMN \"{$t->fields['relname']}\".\"{$atts->fields['attname']}\" IS '{$atts->fields['comment']}';\n"; |
|
1468 | } |
|
1469 | ||
1470 | $atts->moveNext(); |
|
1471 | $i++; |
|
@@ 1588-1592 (lines=5) @@ | ||
1585 | } |
|
1586 | ||
1587 | // Comment |
|
1588 | if ($t->fields['relcomment'] !== null) { |
|
1589 | $this->clean($t->fields['relcomment']); |
|
1590 | $sql .= "\n-- Comment\n\n"; |
|
1591 | $sql .= "COMMENT ON TABLE \"{$t->fields['nspname']}\".\"{$t->fields['relname']}\" IS '{$t->fields['relcomment']}';\n"; |
|
1592 | } |
|
1593 | ||
1594 | // Add comments on columns, if any |
|
1595 | if ($col_comments_sql != '') { |