|
@@ 338-342 (lines=5) @@
|
| 335 |
|
$writeColumns[] = $this->quoteColumnName($writeName); |
| 336 |
|
} |
| 337 |
|
|
| 338 |
|
if (!in_array($this->quoteColumnName($columnName), $selectColumns)) { |
| 339 |
|
throw new \InvalidArgumentException(sprintf( |
| 340 |
|
'The specified column doesn\'t exist: ' . $columnName |
| 341 |
|
)); |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
$this->execute(sprintf('ALTER TABLE %s RENAME TO %s', $tableName, $tmpTableName)); |
| 345 |
|
|
|
@@ 393-397 (lines=5) @@
|
| 390 |
|
$writeColumns[] = $this->quoteColumnName($writeName); |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
if (!in_array($this->quoteColumnName($columnName), $selectColumns)) { |
| 394 |
|
throw new \InvalidArgumentException(sprintf( |
| 395 |
|
'The specified column doesn\'t exist: ' . $columnName |
| 396 |
|
)); |
| 397 |
|
} |
| 398 |
|
|
| 399 |
|
$this->execute(sprintf('ALTER TABLE %s RENAME TO %s', $tableName, $tmpTableName)); |
| 400 |
|
|