| @@ 596-606 (lines=11) @@ | ||
| 593 | . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray); |
|
| 594 | } |
|
| 595 | ||
| 596 | foreach ($diff->renamedColumns as $oldColumnName => $column) { |
|
| 597 | if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) { |
|
| 598 | continue; |
|
| 599 | } |
|
| 600 | ||
| 601 | $oldColumnName = new Identifier($oldColumnName); |
|
| 602 | $columnArray = $column->toArray(); |
|
| 603 | $columnArray['comment'] = $this->getColumnComment($column); |
|
| 604 | $queryParts[] = 'CHANGE ' . $oldColumnName->getQuotedName($this) . ' ' |
|
| 605 | . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray); |
|
| 606 | } |
|
| 607 | ||
| 608 | if (isset($diff->addedIndexes['primary'])) { |
|
| 609 | $keyColumns = array_unique(array_values($diff->addedIndexes['primary']->getColumns())); |
|
| @@ 527-538 (lines=12) @@ | ||
| 524 | . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray); |
|
| 525 | } |
|
| 526 | ||
| 527 | foreach ($diff->renamedColumns as $oldColumnName => $column) { |
|
| 528 | if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) { |
|
| 529 | continue; |
|
| 530 | } |
|
| 531 | ||
| 532 | $oldColumnName = new Identifier($oldColumnName); |
|
| 533 | ||
| 534 | $columnArray = $column->toArray(); |
|
| 535 | $columnArray['comment'] = $this->getColumnComment($column); |
|
| 536 | $queryParts[] = 'CHANGE ' . $oldColumnName->getQuotedName($this) . ' ' |
|
| 537 | . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray); |
|
| 538 | } |
|
| 539 | ||
| 540 | $sql = []; |
|
| 541 | $tableSql = []; |
|