mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	Fix #12423 Fix bug migration tool when creating fields with brackets in comment
This commit is contained in:
		@ -351,7 +351,7 @@ class MigrateController extends BaseMigrateController
 | 
			
		||||
                    continue;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                if (!preg_match('/^(.+?)\(([^)]+)\)$/', $chunk)) {
 | 
			
		||||
                if (!preg_match('/^(.+?)\(([^(]+)\)$/', $chunk)) {
 | 
			
		||||
                    $chunk .= '()';
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user