src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location
|
@@ 395-404 (lines=10) @@
|
| 392 |
|
/** |
| 393 |
|
* {@inheritdoc} |
| 394 |
|
*/ |
| 395 |
|
protected function getAddColumnInstructions(Table $table, Column $column) |
| 396 |
|
{ |
| 397 |
|
$alter = sprintf( |
| 398 |
|
'ADD COLUMN %s %s', |
| 399 |
|
$this->quoteColumnName($column->getName()), |
| 400 |
|
$this->getColumnSqlDefinition($column) |
| 401 |
|
); |
| 402 |
|
|
| 403 |
|
return new AlterInstructions([$alter]); |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
/** |
| 407 |
|
* Returns the original CREATE statement for the give table |
src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location
|
@@ 504-514 (lines=11) @@
|
| 501 |
|
/** |
| 502 |
|
* {@inheritdoc} |
| 503 |
|
*/ |
| 504 |
|
protected function getAddColumnInstructions(Table $table, Column $column) |
| 505 |
|
{ |
| 506 |
|
$alter = sprintf( |
| 507 |
|
'ALTER TABLE %s ADD %s %s', |
| 508 |
|
$table->getName(), |
| 509 |
|
$this->quoteColumnName($column->getName()), |
| 510 |
|
$this->getColumnSqlDefinition($column) |
| 511 |
|
); |
| 512 |
|
|
| 513 |
|
return new AlterInstructions([], [$alter]); |
| 514 |
|
} |
| 515 |
|
|
| 516 |
|
/** |
| 517 |
|
* {@inheritdoc} |