@@ 594-603 (lines=10) @@ | ||
591 | $this->gatherAlterColumnSQL($diff->fromTable, $columnDiff, $sql, $queryParts); |
|
592 | } |
|
593 | ||
594 | foreach ($diff->renamedColumns as $oldColumnName => $column) { |
|
595 | if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) { |
|
596 | continue; |
|
597 | } |
|
598 | ||
599 | $oldColumnName = new Identifier($oldColumnName); |
|
600 | ||
601 | $queryParts[] = 'RENAME COLUMN ' . $oldColumnName->getQuotedName($this) . |
|
602 | ' TO ' . $column->getQuotedName($this); |
|
603 | } |
|
604 | ||
605 | $tableSql = []; |
|
606 |
@@ 201-208 (lines=8) @@ | ||
198 | } |
|
199 | } |
|
200 | ||
201 | foreach ($diff->renamedColumns as $oldColumnName => $column) { |
|
202 | if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) { |
|
203 | continue; |
|
204 | } |
|
205 | ||
206 | $sql[] = $this->getAlterTableClause($diff->getName($this)) . ' ' . |
|
207 | $this->getAlterTableRenameColumnClause($oldColumnName, $column); |
|
208 | } |
|
209 | ||
210 | if ( ! $this->onSchemaAlterTable($diff, $tableSql)) { |
|
211 | if ( ! empty($alterClauses)) { |