| @@ 535-546 (lines=12) @@ | ||
| 532 | . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray); |
|
| 533 | } |
|
| 534 | ||
| 535 | foreach ($diff->renamedColumns as $oldColumnName => $column) { |
|
| 536 | if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) { |
|
| 537 | continue; |
|
| 538 | } |
|
| 539 | ||
| 540 | $oldColumnName = new Identifier($oldColumnName); |
|
| 541 | ||
| 542 | $columnArray = $column->toArray(); |
|
| 543 | $columnArray['comment'] = $this->getColumnComment($column); |
|
| 544 | $queryParts[] = 'CHANGE ' . $oldColumnName->getQuotedName($this) . ' ' |
|
| 545 | . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray); |
|
| 546 | } |
|
| 547 | ||
| 548 | $sql = []; |
|
| 549 | $tableSql = []; |
|
| @@ 608-618 (lines=11) @@ | ||
| 605 | . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray); |
|
| 606 | } |
|
| 607 | ||
| 608 | foreach ($diff->renamedColumns as $oldColumnName => $column) { |
|
| 609 | if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) { |
|
| 610 | continue; |
|
| 611 | } |
|
| 612 | ||
| 613 | $oldColumnName = new Identifier($oldColumnName); |
|
| 614 | $columnArray = $column->toArray(); |
|
| 615 | $columnArray['comment'] = $this->getColumnComment($column); |
|
| 616 | $queryParts[] = 'CHANGE ' . $oldColumnName->getQuotedName($this) . ' ' |
|
| 617 | . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray); |
|
| 618 | } |
|
| 619 | ||
| 620 | if (isset($diff->addedIndexes['primary'])) { |
|
| 621 | $keyColumns = array_unique(array_values($diff->addedIndexes['primary']->getColumns())); |
|