| @@ 483-493 (lines=11) @@ | ||
| 480 | /** |
|
| 481 | * {@inheritdoc} |
|
| 482 | */ |
|
| 483 | protected function getAddColumnInstructions(Table $table, Column $column) |
|
| 484 | { |
|
| 485 | $alter = sprintf( |
|
| 486 | 'ALTER TABLE %s ADD %s %s', |
|
| 487 | $table->getName(), |
|
| 488 | $this->quoteColumnName($column->getName()), |
|
| 489 | $this->getColumnSqlDefinition($column) |
|
| 490 | ); |
|
| 491 | ||
| 492 | return new AlterInstructions([], [$alter]); |
|
| 493 | } |
|
| 494 | ||
| 495 | /** |
|
| 496 | * {@inheritdoc} |
|
| @@ 654-664 (lines=11) @@ | ||
| 651 | /** |
|
| 652 | * {@inheritdoc} |
|
| 653 | */ |
|
| 654 | protected function getAddColumnInstructions(Table $table, Column $column) |
|
| 655 | { |
|
| 656 | $alter = sprintf( |
|
| 657 | 'ALTER TABLE %s ADD COLUMN %s %s', |
|
| 658 | $this->quoteTableName($table->getName()), |
|
| 659 | $this->quoteColumnName($column->getName()), |
|
| 660 | $this->getColumnSqlDefinition($column) |
|
| 661 | ); |
|
| 662 | ||
| 663 | return new AlterInstructions([], [$alter]); |
|
| 664 | } |
|
| 665 | ||
| 666 | /** |
|
| 667 | * Returns the original CREATE statement for the give table |
|