@@ 475-479 (lines=5) @@ | ||
472 | protected function getRenameColumnInstructions($tableName, $columnName, $newColumnName) |
|
473 | { |
|
474 | $instructions = $this->beginAlterByCopyTable($tableName); |
|
475 | $instructions->addPostStep(function ($state) use ($columnName, $newColumnName) { |
|
476 | $newState = $this->calculateNewTableColumns($state['tmpTableName'], $columnName, $newColumnName); |
|
477 | ||
478 | return $newState + $state; |
|
479 | }); |
|
480 | ||
481 | $instructions->addPostStep(function ($state) use ($columnName, $newColumnName) { |
|
482 | $sql = str_replace( |
|
@@ 503-507 (lines=5) @@ | ||
500 | $instructions = $this->beginAlterByCopyTable($tableName); |
|
501 | ||
502 | $newColumnName = $newColumn->getName(); |
|
503 | $instructions->addPostStep(function ($state) use ($columnName, $newColumnName) { |
|
504 | $newState = $this->calculateNewTableColumns($state['tmpTableName'], $columnName, $newColumnName); |
|
505 | ||
506 | return $newState + $state; |
|
507 | }); |
|
508 | ||
509 | $instructions->addPostStep(function ($state) use ($columnName, $newColumn) { |
|
510 | $sql = preg_replace( |
|
@@ 531-535 (lines=5) @@ | ||
528 | { |
|
529 | $instructions = $this->beginAlterByCopyTable($tableName); |
|
530 | ||
531 | $instructions->addPostStep(function ($state) use ($columnName) { |
|
532 | $newState = $this->calculateNewTableColumns($state['tmpTableName'], $columnName, false); |
|
533 | ||
534 | return $newState + $state; |
|
535 | }); |
|
536 | ||
537 | $instructions->addPostStep(function ($state) use ($columnName) { |
|
538 | $sql = preg_replace( |