| @@ 205-212 (lines=8) @@ | ||
| 202 | $sql .= $this->quoteTableName($table->getName()) . ' ('; |
|
| 203 | ||
| 204 | $this->columnsWithComments = []; |
|
| 205 | foreach ($columns as $column) { |
|
| 206 | $sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . ', '; |
|
| 207 | ||
| 208 | // set column comments, if needed |
|
| 209 | if ($column->getComment()) { |
|
| 210 | $this->columnsWithComments[] = $column; |
|
| 211 | } |
|
| 212 | } |
|
| 213 | ||
| 214 | // set the primary key(s) |
|
| 215 | if (isset($options['primary_key'])) { |
|
| @@ 235-242 (lines=8) @@ | ||
| 232 | $sql .= $this->quoteTableName($table->getName()) . ' ('; |
|
| 233 | $sqlBuffer = []; |
|
| 234 | $columnsWithComments = []; |
|
| 235 | foreach ($columns as $column) { |
|
| 236 | $sqlBuffer[] = $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column); |
|
| 237 | ||
| 238 | // set column comments, if needed |
|
| 239 | if ($column->getComment()) { |
|
| 240 | $columnsWithComments[] = $column; |
|
| 241 | } |
|
| 242 | } |
|
| 243 | ||
| 244 | // set the primary key(s) |
|
| 245 | if (isset($options['primary_key'])) { |
|