| @@ 501-511 (lines=11) @@ | ||
| 498 | /** |
|
| 499 | * @inheritDoc |
|
| 500 | */ |
|
| 501 | protected function getAddColumnInstructions(Table $table, Column $column) |
|
| 502 | { |
|
| 503 | $alter = sprintf( |
|
| 504 | 'ALTER TABLE %s ADD %s %s', |
|
| 505 | $table->getName(), |
|
| 506 | $this->quoteColumnName($column->getName()), |
|
| 507 | $this->getColumnSqlDefinition($column) |
|
| 508 | ); |
|
| 509 | ||
| 510 | return new AlterInstructions([], [$alter]); |
|
| 511 | } |
|
| 512 | ||
| 513 | /** |
|
| 514 | * {@inheritDoc} |
|
| @@ 674-684 (lines=11) @@ | ||
| 671 | /** |
|
| 672 | * @inheritDoc |
|
| 673 | */ |
|
| 674 | protected function getAddColumnInstructions(Table $table, Column $column) |
|
| 675 | { |
|
| 676 | $alter = sprintf( |
|
| 677 | 'ALTER TABLE %s ADD COLUMN %s %s', |
|
| 678 | $this->quoteTableName($table->getName()), |
|
| 679 | $this->quoteColumnName($column->getName()), |
|
| 680 | $this->getColumnSqlDefinition($column) |
|
| 681 | ); |
|
| 682 | ||
| 683 | return new AlterInstructions([], [$alter]); |
|
| 684 | } |
|
| 685 | ||
| 686 | /** |
|
| 687 | * Returns the original CREATE statement for the give table |
|