| @@ 220-227 (lines=8) @@ | ||
| 217 | $sql .= $this->quoteTableName($table->getName()) . ' ('; |
|
| 218 | ||
| 219 | $this->columnsWithComments = []; |
|
| 220 | foreach ($columns as $column) { |
|
| 221 | $sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . ', '; |
|
| 222 | ||
| 223 | // set column comments, if needed |
|
| 224 | if ($column->getComment()) { |
|
| 225 | $this->columnsWithComments[] = $column; |
|
| 226 | } |
|
| 227 | } |
|
| 228 | ||
| 229 | // set the primary key(s) |
|
| 230 | if (isset($options['primary_key'])) { |
|
| @@ 238-245 (lines=8) @@ | ||
| 235 | $sql .= $this->quoteTableName($table->getName()) . ' ('; |
|
| 236 | $sqlBuffer = []; |
|
| 237 | $columnsWithComments = []; |
|
| 238 | foreach ($columns as $column) { |
|
| 239 | $sqlBuffer[] = $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column); |
|
| 240 | ||
| 241 | // set column comments, if needed |
|
| 242 | if ($column->getComment()) { |
|
| 243 | $columnsWithComments[] = $column; |
|
| 244 | } |
|
| 245 | } |
|
| 246 | ||
| 247 | // set the primary key(s) |
|
| 248 | if (isset($options['primary_key'])) { |
|