Skip to content

Commit

Permalink
Merge 18643eb into 877033d
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Oct 11, 2020
2 parents 877033d + 18643eb commit e6774df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Phinx/Db/Adapter/MysqlAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ public function getSqlType($type, $limit = null)

return ['name' => 'int', 'limit' => $limit];
case static::PHINX_TYPE_BIG_INTEGER:
return ['name' => 'bigint', 'limit' => 20];
return ['name' => 'bigint', 'limit' => $limit ?: 20];
case static::PHINX_TYPE_BOOLEAN:
return ['name' => 'tinyint', 'limit' => 1];
case static::PHINX_TYPE_UUID:
Expand Down

0 comments on commit e6774df

Please sign in to comment.