src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location
|
@@ 236-243 (lines=8) @@
|
| 233 |
|
$sql .= $this->quoteTableName($table->getName()) . ' ('; |
| 234 |
|
$sqlBuffer = []; |
| 235 |
|
$columnsWithComments = []; |
| 236 |
|
foreach ($columns as $column) { |
| 237 |
|
$sqlBuffer[] = $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column); |
| 238 |
|
|
| 239 |
|
// set column comments, if needed |
| 240 |
|
if ($column->getComment()) { |
| 241 |
|
$columnsWithComments[] = $column; |
| 242 |
|
} |
| 243 |
|
} |
| 244 |
|
|
| 245 |
|
// set the primary key(s) |
| 246 |
|
if (isset($options['primary_key'])) { |
src/Phinx/Db/Adapter/PostgresAdapter.php 1 location
|
@@ 218-225 (lines=8) @@
|
| 215 |
|
$sql .= $this->quoteTableName($table->getName()) . ' ('; |
| 216 |
|
|
| 217 |
|
$this->columnsWithComments = []; |
| 218 |
|
foreach ($columns as $column) { |
| 219 |
|
$sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . ', '; |
| 220 |
|
|
| 221 |
|
// set column comments, if needed |
| 222 |
|
if ($column->getComment()) { |
| 223 |
|
$this->columnsWithComments[] = $column; |
| 224 |
|
} |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
// set the primary key(s) |
| 228 |
|
if (isset($options['primary_key'])) { |
src/Phinx/Db/Adapter/RedshiftAdapter.php 1 location
|
@@ 41-49 (lines=9) @@
|
| 38 |
|
$sql .= $this->quoteTableName($table->getName()) . ' ('; |
| 39 |
|
|
| 40 |
|
$this->columnsWithComments = []; |
| 41 |
|
foreach ($columns as $column) { |
| 42 |
|
$sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . |
| 43 |
|
', '; |
| 44 |
|
|
| 45 |
|
// set column comments, if needed |
| 46 |
|
if ($column->getComment()) { |
| 47 |
|
$this->columnsWithComments[] = $column; |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
// set the primary key(s) |
| 52 |
|
if (isset($options['primary_key'])) { |