From f50c412fa3a56017802839fb36b8ae30a91451ac Mon Sep 17 00:00:00 2001 From: Carlos Cima Date: Wed, 29 Jun 2016 11:45:50 -0400 Subject: [PATCH] Allow int fields without the number of digits definition. --- src/RegExpPattern.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RegExpPattern.php b/src/RegExpPattern.php index d635f7a..89dac48 100644 --- a/src/RegExpPattern.php +++ b/src/RegExpPattern.php @@ -6,7 +6,7 @@ class RegExpPattern { private static $columnTypeRegExps = [ - '(?:tiny|small|medium|big)?int\((?\d+)\)(?:\s+unsigned)?', + '(?:tiny|small|medium|big)?int(?:\((?\d+)\))?(?:\s+unsigned)?', 'float(?:\s+unsigned)?(?:\((?\d+),(?\d+)\))?', 'binary', 'real',