@@ 548-559 (lines=12) @@ | ||
545 | . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray); |
|
546 | } |
|
547 | ||
548 | foreach ($diff->renamedColumns as $oldColumnName => $column) { |
|
549 | if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) { |
|
550 | continue; |
|
551 | } |
|
552 | ||
553 | $oldColumnName = new Identifier($oldColumnName); |
|
554 | ||
555 | $columnArray = $column->toArray(); |
|
556 | $columnArray['comment'] = $this->getColumnComment($column); |
|
557 | $queryParts[] = 'CHANGE ' . $oldColumnName->getQuotedName($this) . ' ' |
|
558 | . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray); |
|
559 | } |
|
560 | ||
561 | $sql = []; |
|
562 | $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())); |