| @@ 375-385 (lines=11) @@ | ||
| 372 | /** |
|
| 373 | * {@inheritdoc} |
|
| 374 | */ |
|
| 375 | protected function getAddColumnInstructions(Table $table, Column $column) |
|
| 376 | { |
|
| 377 | $alter = sprintf( |
|
| 378 | 'ALTER TABLE %s ADD COLUMN %s %s', |
|
| 379 | $this->quoteTableName($table->getName()), |
|
| 380 | $this->quoteColumnName($column->getName()), |
|
| 381 | $this->getColumnSqlDefinition($column) |
|
| 382 | ); |
|
| 383 | ||
| 384 | return new AlterInstructions([], [$alter]); |
|
| 385 | } |
|
| 386 | ||
| 387 | /** |
|
| 388 | * Returns the original CREATE statement for the give table |
|
| @@ 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} |
|