| @@ 658-668 (lines=11) @@ | ||
| 655 | /** |
|
| 656 | * {@inheritdoc} |
|
| 657 | */ |
|
| 658 | protected function getAddColumnInstructions(Table $table, Column $column) |
|
| 659 | { |
|
| 660 | $alter = sprintf( |
|
| 661 | 'ALTER TABLE %s ADD COLUMN %s %s', |
|
| 662 | $this->quoteTableName($table->getName()), |
|
| 663 | $this->quoteColumnName($column->getName()), |
|
| 664 | $this->getColumnSqlDefinition($column) |
|
| 665 | ); |
|
| 666 | ||
| 667 | return new AlterInstructions([], [$alter]); |
|
| 668 | } |
|
| 669 | ||
| 670 | /** |
|
| 671 | * Returns the original CREATE statement for the give table |
|
| @@ 491-501 (lines=11) @@ | ||
| 488 | /** |
|
| 489 | * {@inheritdoc} |
|
| 490 | */ |
|
| 491 | protected function getAddColumnInstructions(Table $table, Column $column) |
|
| 492 | { |
|
| 493 | $alter = sprintf( |
|
| 494 | 'ALTER TABLE %s ADD %s %s', |
|
| 495 | $table->getName(), |
|
| 496 | $this->quoteColumnName($column->getName()), |
|
| 497 | $this->getColumnSqlDefinition($column) |
|
| 498 | ); |
|
| 499 | ||
| 500 | return new AlterInstructions([], [$alter]); |
|
| 501 | } |
|
| 502 | ||
| 503 | /** |
|
| 504 | * {@inheritdoc} |
|