@@ -267,9 +267,9 @@ discard block |
||
267 | 267 | // Handle id => "field_name" to support AUTO_INCREMENT |
268 | 268 | $column = new Column(); |
269 | 269 | $column->setName($options['id']) |
270 | - ->setType('integer') |
|
271 | - ->setSigned($options['signed'] ?? true) |
|
272 | - ->setIdentity(true); |
|
270 | + ->setType('integer') |
|
271 | + ->setSigned($options['signed'] ?? true) |
|
272 | + ->setIdentity(true); |
|
273 | 273 | |
274 | 274 | if (isset($options['limit'])) { |
275 | 275 | $column->setLimit($options['limit']); |
@@ -442,11 +442,11 @@ discard block |
||
442 | 442 | |
443 | 443 | $column = new Column(); |
444 | 444 | $column->setName($columnInfo['Field']) |
445 | - ->setNull($columnInfo['Null'] !== 'NO') |
|
446 | - ->setType($phinxType['name']) |
|
447 | - ->setSigned(strpos($columnInfo['Type'], 'unsigned') === false) |
|
448 | - ->setLimit($phinxType['limit']) |
|
449 | - ->setScale($phinxType['scale']); |
|
445 | + ->setNull($columnInfo['Null'] !== 'NO') |
|
446 | + ->setType($phinxType['name']) |
|
447 | + ->setSigned(strpos($columnInfo['Type'], 'unsigned') === false) |
|
448 | + ->setLimit($phinxType['limit']) |
|
449 | + ->setScale($phinxType['scale']); |
|
450 | 450 | |
451 | 451 | if ($columnInfo['Extra'] === 'auto_increment') { |
452 | 452 | $column->setIdentity(true); |