src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location
|
@@ 188-190 (lines=3) @@
|
| 185 |
|
|
| 186 |
|
$sql = 'CREATE TABLE '; |
| 187 |
|
$sql .= $this->quoteTableName($table->getName()) . ' ('; |
| 188 |
|
foreach ($columns as $column) { |
| 189 |
|
$sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . ', '; |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
// set the primary key(s) |
| 193 |
|
if (isset($options['primary_key'])) { |
src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
|
@@ 285-287 (lines=3) @@
|
| 282 |
|
|
| 283 |
|
$sql = 'CREATE TABLE '; |
| 284 |
|
$sql .= $this->quoteTableName($table->getName()) . ' ('; |
| 285 |
|
foreach ($columns as $column) { |
| 286 |
|
$sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . ', '; |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
// set the primary key(s) |
| 290 |
|
if (isset($options['primary_key'])) { |