{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/11461","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/11461/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/11461/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/11461/events","html_url":"https://github.com/yiisoft/yii2/issues/11461","id":151876830,"number":11461,"title":"Migration tool. Create migrate with comma in defaultValue","user":{"login":"s-o-f","id":3519997,"avatar_url":"https://avatars.githubusercontent.com/u/3519997?v=3","gravatar_id":"","url":"https://api.github.com/users/s-o-f","html_url":"https://github.com/s-o-f","followers_url":"https://api.github.com/users/s-o-f/followers","following_url":"https://api.github.com/users/s-o-f/following{/other_user}","gists_url":"https://api.github.com/users/s-o-f/gists{/gist_id}","starred_url":"https://api.github.com/users/s-o-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-o-f/subscriptions","organizations_url":"https://api.github.com/users/s-o-f/orgs","repos_url":"https://api.github.com/users/s-o-f/repos","events_url":"https://api.github.com/users/s-o-f/events{/privacy}","received_events_url":"https://api.github.com/users/s-o-f/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/complexity:easy","name":"complexity:easy","color":"bfe5bf"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:ready%20for%20adoption","name":"status:ready for adoption","color":"02e10c"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:bug","name":"type:bug","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/17","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.9","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/17/labels","id":1580065,"number":17,"title":"2.0.9","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":103,"closed_issues":0,"state":"open","created_at":"2016-02-12T16:35:34Z","updated_at":"2016-04-29T20:56:52Z","due_on":"2016-06-25T21:00:00Z","closed_at":null},"comments":7,"created_at":"2016-04-29T14:13:49Z","updated_at":"2016-04-30T01:09:09Z","closed_at":null,"body":"The issue like that: https://github.com/yiisoft/yii2/issues/10969\r\nIf \"defaultValue\" contains comma, incorrect code will be generated. \r\n\r\n```\r\nyii migrate/create add_field_to_table \r\n--fields=\"title:string(10):notNull:unique:defaultValue('te,st'),body:text:notNull\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/215919433","html_url":"https://github.com/yiisoft/yii2/issues/11461#issuecomment-215919433","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/11461","id":215919433,"user":{"login":"pana1990","id":6630197,"avatar_url":"https://avatars.githubusercontent.com/u/6630197?v=3","gravatar_id":"","url":"https://api.github.com/users/pana1990","html_url":"https://github.com/pana1990","followers_url":"https://api.github.com/users/pana1990/followers","following_url":"https://api.github.com/users/pana1990/following{/other_user}","gists_url":"https://api.github.com/users/pana1990/gists{/gist_id}","starred_url":"https://api.github.com/users/pana1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pana1990/subscriptions","organizations_url":"https://api.github.com/users/pana1990/orgs","repos_url":"https://api.github.com/users/pana1990/repos","events_url":"https://api.github.com/users/pana1990/events{/privacy}","received_events_url":"https://api.github.com/users/pana1990/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T01:09:09Z","updated_at":"2016-04-30T01:09:09Z","body":"@s-o-f try it this one, please : \r\n```\r\n(?!\\((\\'|\")*[^\"\\']+)\\s*,\\s*((?![^\"\\'(\\)]*(\\'|\")*\\)))\r\n```"}}