{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/16320","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/16320/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/16320/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/16320/events","html_url":"https://github.com/yiisoft/yii2/issues/16320","id":326340872,"number":16320,"title":"[enh] Add autoIncrement() in Migrations to allow fine grained data type in PK","user":{"login":"slinstj","id":412490,"avatar_url":"https://avatars0.githubusercontent.com/u/412490?v=4","gravatar_id":"","url":"https://api.github.com/users/slinstj","html_url":"https://github.com/slinstj","followers_url":"https://api.github.com/users/slinstj/followers","following_url":"https://api.github.com/users/slinstj/following{/other_user}","gists_url":"https://api.github.com/users/slinstj/gists{/gist_id}","starred_url":"https://api.github.com/users/slinstj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slinstj/subscriptions","organizations_url":"https://api.github.com/users/slinstj/orgs","repos_url":"https://api.github.com/users/slinstj/repos","events_url":"https://api.github.com/users/slinstj/events{/privacy}","received_events_url":"https://api.github.com/users/slinstj/received_events","type":"User","site_admin":false},"labels":[{"id":33332028,"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:enhancement","name":"type:enhancement","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/29","html_url":"https://github.com/yiisoft/yii2/milestone/29","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/29/labels","id":2999535,"number":29,"title":"2.1.1","description":"","creator":{"login":"samdark","id":47294,"avatar_url":"https://avatars2.githubusercontent.com/u/47294?v=4","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"open_issues":126,"closed_issues":4,"state":"open","created_at":"2017-12-27T11:50:11Z","updated_at":"2018-05-25T21:42:59Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-05-25T00:21:51Z","updated_at":"2018-05-25T21:43:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### What steps will reproduce the problem?\r\n[This stackoverflow question](https://stackoverflow.com/questions/34117058/how-do-i-implement-auto-increment-in-a-yii2-migration-using-mysql?rq=1) demonstrates the exact problem.\r\n\r\nIn a nutshell: `primaryKey()` is the only way to set an auto increment field that is db agnostic but it is ever an `int` data type. Sometimes whe need it to be either `smallint` or `bigint`. Having a `autoIncrement()` would make it possible (`AUTO_INCREMENT` for MySQL, `IDENTITY(1,1)` for MSSQL, and so on);"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/392195176","html_url":"https://github.com/yiisoft/yii2/issues/16320#issuecomment-392195176","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/16320","id":392195176,"user":{"login":"samdark","id":47294,"avatar_url":"https://avatars2.githubusercontent.com/u/47294?v=4","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T21:43:04Z","updated_at":"2018-05-25T21:43:04Z","author_association":"MEMBER","body":"I'm OK adding it."}}
{"actor":{"display_login":"samdark"}}