Skip to content

Commit 4fd99da

Browse files
committed
Changes in decimal unsigned columns not detected
Modified regexp to accept unsigned decimal columns
1 parent 42e35ee commit 4fd99da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RegExpPattern.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RegExpPattern
1818
'float(?:\s+unsigned)?(?:\((?<floatLength>\d+),(?<floatPrecision>\d+)\))?',
1919
'binary',
2020
'real',
21-
'decimal\((?<decimalLength>\d+),(?<decimalPrecision>\d+)\)',
21+
'decimal\((?<decimalLength>\d+),(?<decimalPrecision>\d+)\)(?:\s+unsigned)?',
2222
'double(?:\((?<doubleLength>\d+),(?<doublePrecision>\d+)\))?(?:\s+unsigned)?',
2323
'datetime',
2424
'date',
@@ -146,4 +146,4 @@ public static function indexColumn()
146146

147147
return $pattern;
148148
}
149-
}
149+
}

0 commit comments

Comments
 (0)