@@ 563-572 (lines=10) @@ | ||
560 | $this->gatherAlterColumnSQL($diff->fromTable, $columnDiff, $sql, $queryParts); |
|
561 | } |
|
562 | ||
563 | foreach ($diff->renamedColumns as $oldColumnName => $column) { |
|
564 | if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) { |
|
565 | continue; |
|
566 | } |
|
567 | ||
568 | $oldColumnName = new Identifier($oldColumnName); |
|
569 | ||
570 | $queryParts[] = 'RENAME COLUMN ' . $oldColumnName->getQuotedName($this) . |
|
571 | ' TO ' . $column->getQuotedName($this); |
|
572 | } |
|
573 | ||
574 | $tableSql = []; |
|
575 |
@@ 187-194 (lines=8) @@ | ||
184 | } |
|
185 | } |
|
186 | ||
187 | foreach ($diff->renamedColumns as $oldColumnName => $column) { |
|
188 | if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) { |
|
189 | continue; |
|
190 | } |
|
191 | ||
192 | $sql[] = $this->getAlterTableClause($diff->getName($this)) . ' ' . |
|
193 | $this->getAlterTableRenameColumnClause($oldColumnName, $column); |
|
194 | } |
|
195 | ||
196 | if ( ! $this->onSchemaAlterTable($diff, $tableSql)) { |
|
197 | if ( ! empty($alterClauses)) { |