| @@ 1591-1593 (lines=3) @@ | ||
| 1588 | foreach ($table->getColumns() as $column) { |
|
| 1589 | $comment = $this->getColumnComment($column); |
|
| 1590 | ||
| 1591 | if (null !== $comment && '' !== $comment) { |
|
| 1592 | $sql[] = $this->getCommentOnColumnSQL($tableName, $column->getQuotedName($this), $comment); |
|
| 1593 | } |
|
| 1594 | } |
|
| 1595 | } |
|
| 1596 | ||
| @@ 526-532 (lines=7) @@ | ||
| 523 | ||
| 524 | $comment = $this->getColumnComment($column); |
|
| 525 | ||
| 526 | if (null !== $comment && '' !== $comment) { |
|
| 527 | $commentsSQL[] = $this->getCommentOnColumnSQL( |
|
| 528 | $diff->getName($this)->getQuotedName($this), |
|
| 529 | $column->getQuotedName($this), |
|
| 530 | $comment |
|
| 531 | ); |
|
| 532 | } |
|
| 533 | } |
|
| 534 | ||
| 535 | foreach ($diff->removedColumns as $column) { |
|
| @@ 146-152 (lines=7) @@ | ||
| 143 | ||
| 144 | $comment = $this->getColumnComment($column); |
|
| 145 | ||
| 146 | if (null !== $comment && '' !== $comment) { |
|
| 147 | $commentsSQL[] = $this->getCommentOnColumnSQL( |
|
| 148 | $diff->getName($this)->getQuotedName($this), |
|
| 149 | $column->getQuotedName($this), |
|
| 150 | $comment |
|
| 151 | ); |
|
| 152 | } |
|
| 153 | } |
|
| 154 | ||
| 155 | /** @var \Doctrine\DBAL\Schema\Column $column */ |
|
| @@ 506-512 (lines=7) @@ | ||
| 503 | ||
| 504 | $comment = $this->getColumnComment($column); |
|
| 505 | ||
| 506 | if (null !== $comment && '' !== $comment) { |
|
| 507 | $commentsSQL[] = $this->getCommentOnColumnSQL( |
|
| 508 | $diff->getName($this)->getQuotedName($this), |
|
| 509 | $column->getQuotedName($this), |
|
| 510 | $comment |
|
| 511 | ); |
|
| 512 | } |
|
| 513 | } |
|
| 514 | ||
| 515 | foreach ($diff->removedColumns as $column) { |
|
| @@ 580-586 (lines=7) @@ | ||
| 577 | ||
| 578 | $comment = $this->getColumnComment($column); |
|
| 579 | ||
| 580 | if (null !== $comment && '' !== $comment) { |
|
| 581 | $commentsSQL[] = $this->getCommentOnColumnSQL( |
|
| 582 | $diff->getName($this)->getQuotedName($this), |
|
| 583 | $column->getQuotedName($this), |
|
| 584 | $comment |
|
| 585 | ); |
|
| 586 | } |
|
| 587 | ||
| 588 | if ($columnDiff->hasChanged('length')) { |
|
| 589 | $query = 'ALTER ' . $oldColumnName . ' TYPE ' . $column->getType()->getSQLDeclaration($column->toArray(), $this); |
|