Skip to content

Commit

Permalink
fixed numeric unsigned bug
Browse files Browse the repository at this point in the history
(cherry picked from commit afc94eb)
  • Loading branch information
xiaochong0302 authored and odan committed Dec 30, 2020
1 parent 4b12202 commit 2d3620f
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 2d3620f

Please sign in to comment.