@@ 352-356 (lines=5) @@ | ||
349 | $writeColumns[] = $this->quoteColumnName($writeName); |
|
350 | } |
|
351 | ||
352 | if (!in_array($this->quoteColumnName($columnName), $selectColumns)) { |
|
353 | throw new \InvalidArgumentException(sprintf( |
|
354 | 'The specified column doesn\'t exist: ' . $columnName |
|
355 | )); |
|
356 | } |
|
357 | ||
358 | $this->execute(sprintf('ALTER TABLE %s RENAME TO %s', $tableName, $tmpTableName)); |
|
359 | ||
@@ 407-411 (lines=5) @@ | ||
404 | $writeColumns[] = $this->quoteColumnName($writeName); |
|
405 | } |
|
406 | ||
407 | if (!in_array($this->quoteColumnName($columnName), $selectColumns)) { |
|
408 | throw new \InvalidArgumentException(sprintf( |
|
409 | 'The specified column doesn\'t exist: ' . $columnName |
|
410 | )); |
|
411 | } |
|
412 | ||
413 | $this->execute(sprintf('ALTER TABLE %s RENAME TO %s', $tableName, $tmpTableName)); |
|
414 |