src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location
|
@@ 432-442 (lines=11) @@
|
429 |
|
/** |
430 |
|
* {@inheritdoc} |
431 |
|
*/ |
432 |
|
protected function getAddColumnInstructions(Table $table, Column $column) |
433 |
|
{ |
434 |
|
$alter = sprintf( |
435 |
|
'ALTER TABLE %s ADD %s %s', |
436 |
|
$table->getName(), |
437 |
|
$this->quoteColumnName($column->getName()), |
438 |
|
$this->getColumnSqlDefinition($column) |
439 |
|
); |
440 |
|
|
441 |
|
return new AlterInstructions([], [$alter]); |
442 |
|
} |
443 |
|
|
444 |
|
/** |
445 |
|
* {@inheritdoc} |
src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location
|
@@ 336-345 (lines=10) @@
|
333 |
|
/** |
334 |
|
* {@inheritdoc} |
335 |
|
*/ |
336 |
|
protected function getAddColumnInstructions(Table $table, Column $column) |
337 |
|
{ |
338 |
|
$alter = sprintf( |
339 |
|
'ADD COLUMN %s %s', |
340 |
|
$this->quoteColumnName($column->getName()), |
341 |
|
$this->getColumnSqlDefinition($column) |
342 |
|
); |
343 |
|
|
344 |
|
return new AlterInstructions([$alter]); |
345 |
|
} |
346 |
|
|
347 |
|
/** |
348 |
|
* Returns the original CREATE statement for the give table |