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/OracleAdapter.php 1 location
|
@@ 192-199 (lines=8) @@
|
| 189 |
|
$sqlBuffer = []; |
| 190 |
|
$columnsWithComments = []; |
| 191 |
|
|
| 192 |
|
foreach ($columns as $column) { |
| 193 |
|
$sqlBuffer[] = $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column); |
| 194 |
|
|
| 195 |
|
// set column comments, if needed |
| 196 |
|
if ($column->getComment()) { |
| 197 |
|
$columnsWithComments[] = $column; |
| 198 |
|
} |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
// set the primary key(s) |
| 202 |
|
if (isset($options['primary_key'])) { |
src/Phinx/Db/Adapter/PostgresAdapter.php 1 location
|
@@ 214-221 (lines=8) @@
|
| 211 |
|
$sql .= $this->quoteTableName($table->getName()) . ' ('; |
| 212 |
|
|
| 213 |
|
$this->columnsWithComments = []; |
| 214 |
|
foreach ($columns as $column) { |
| 215 |
|
$sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . ', '; |
| 216 |
|
|
| 217 |
|
// set column comments, if needed |
| 218 |
|
if ($column->getComment()) { |
| 219 |
|
$this->columnsWithComments[] = $column; |
| 220 |
|
} |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
// set the primary key(s) |
| 224 |
|
if (isset($options['primary_key'])) { |