{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9445","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9445/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9445/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9445/events","html_url":"https://github.com/yiisoft/yii2/issues/9445","id":101474882,"number":9445,"title":"New migration style (defaultValue('NULL')","user":{"login":"armpogart","id":785768,"avatar_url":"https://avatars.githubusercontent.com/u/785768?v=3","gravatar_id":"","url":"https://api.github.com/users/armpogart","html_url":"https://github.com/armpogart","followers_url":"https://api.github.com/users/armpogart/followers","following_url":"https://api.github.com/users/armpogart/following{/other_user}","gists_url":"https://api.github.com/users/armpogart/gists{/gist_id}","starred_url":"https://api.github.com/users/armpogart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armpogart/subscriptions","organizations_url":"https://api.github.com/users/armpogart/orgs","repos_url":"https://api.github.com/users/armpogart/repos","events_url":"https://api.github.com/users/armpogart/events{/privacy}","received_events_url":"https://api.github.com/users/armpogart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"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},"milestone":null,"comments":4,"created_at":"2015-08-17T17:52:31Z","updated_at":"2015-08-18T12:00:16Z","closed_at":"2015-08-17T22:14:55Z","body":"As far as I can see in new migration style, there is no ability to define `NULL` default.\r\n\r\n* `defaultValue('NULL')` will create `DEFAULT 'NULL'` which is not right\r\n* `defaultValue(null)` will ignore the specified null"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/132186814","html_url":"https://github.com/yiisoft/yii2/issues/9445#issuecomment-132186814","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/9445","id":132186814,"user":{"login":"armpogart","id":785768,"avatar_url":"https://avatars.githubusercontent.com/u/785768?v=3","gravatar_id":"","url":"https://api.github.com/users/armpogart","html_url":"https://github.com/armpogart","followers_url":"https://api.github.com/users/armpogart/followers","following_url":"https://api.github.com/users/armpogart/following{/other_user}","gists_url":"https://api.github.com/users/armpogart/gists{/gist_id}","starred_url":"https://api.github.com/users/armpogart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armpogart/subscriptions","organizations_url":"https://api.github.com/users/armpogart/orgs","repos_url":"https://api.github.com/users/armpogart/repos","events_url":"https://api.github.com/users/armpogart/events{/privacy}","received_events_url":"https://api.github.com/users/armpogart/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T12:00:16Z","updated_at":"2015-08-18T12:00:16Z","body":"Sorry, I've looked through the php source code only and haven't checked what PostgreSQL does by default. Thanks."}}