Skip to content

Commit

Permalink
Merge pull request #94 from xiaochong0302/master
Browse files Browse the repository at this point in the history
fixed numeric unsigned bug
  • Loading branch information
odan authored Dec 27, 2020
2 parents 8db5c57 + afc94eb commit 4da08aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private function getPhinxColumnOptionsNumeric(array $attributes, array $columnDa

// signed enable or disable the unsigned option (only applies to MySQL)
$match = null;
$pattern = '/\(\d+\) unsigned$/';
$pattern = '/unsigned$/';
if (preg_match($pattern, $columnData['COLUMN_TYPE'], $match) === 1) {
$attributes['signed'] = false;
}
Expand Down

0 comments on commit 4da08aa

Please sign in to comment.