| @@ 176-184 (lines=9) @@ | ||
| 173 | $alterClauses[] = $alterClause; |
|
| 174 | } |
|
| 175 | ||
| 176 | if ($columnDiff->hasChanged('comment')) { |
|
| 177 | $column = $columnDiff->column; |
|
| 178 | ||
| 179 | $commentsSQL[] = $this->getCommentOnColumnSQL( |
|
| 180 | $diff->getName($this)->getQuotedName($this), |
|
| 181 | $column->getQuotedName($this), |
|
| 182 | $this->getColumnComment($column) |
|
| 183 | ); |
|
| 184 | } |
|
| 185 | } |
|
| 186 | ||
| 187 | foreach ($diff->renamedColumns as $oldColumnName => $column) { |
|
| @@ 578-584 (lines=7) @@ | ||
| 575 | } |
|
| 576 | } |
|
| 577 | ||
| 578 | if ($columnDiff->hasChanged('comment')) { |
|
| 579 | $commentsSQL[] = $this->getCommentOnColumnSQL( |
|
| 580 | $diff->getName($this)->getQuotedName($this), |
|
| 581 | $column->getQuotedName($this), |
|
| 582 | $this->getColumnComment($column) |
|
| 583 | ); |
|
| 584 | } |
|
| 585 | ||
| 586 | if ($columnDiff->hasChanged('length')) { |
|
| 587 | $query = 'ALTER ' . $oldColumnName . ' TYPE ' . $column->getType()->getSQLDeclaration($column->toArray(), $this); |
|