@@ 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 = []; |
@@ 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())); |