{"action":"created","issue":{"url":"https://api.github.com/repos/django/django/issues/6746","repository_url":"https://api.github.com/repos/django/django","labels_url":"https://api.github.com/repos/django/django/issues/6746/labels{/name}","comments_url":"https://api.github.com/repos/django/django/issues/6746/comments","events_url":"https://api.github.com/repos/django/django/issues/6746/events","html_url":"https://github.com/django/django/pull/6746","id":159211522,"number":6746,"title":"Made AutoField consistent between postgresql and mysql","user":{"login":"hellerve","id":7725188,"avatar_url":"https://avatars.githubusercontent.com/u/7725188?v=3","gravatar_id":"","url":"https://api.github.com/users/hellerve","html_url":"https://github.com/hellerve","followers_url":"https://api.github.com/users/hellerve/followers","following_url":"https://api.github.com/users/hellerve/following{/other_user}","gists_url":"https://api.github.com/users/hellerve/gists{/gist_id}","starred_url":"https://api.github.com/users/hellerve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellerve/subscriptions","organizations_url":"https://api.github.com/users/hellerve/orgs","repos_url":"https://api.github.com/users/hellerve/repos","events_url":"https://api.github.com/users/hellerve/events{/privacy}","received_events_url":"https://api.github.com/users/hellerve/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-08T16:31:37Z","updated_at":"2016-06-08T18:36:03Z","closed_at":"2016-06-08T18:32:47Z","pull_request":{"url":"https://api.github.com/repos/django/django/pulls/6746","html_url":"https://github.com/django/django/pull/6746","diff_url":"https://github.com/django/django/pull/6746.diff","patch_url":"https://github.com/django/django/pull/6746.patch"},"body":"**The problem**\r\nCurrently, (Big)*AutoField becomes an `integer AUTO_INCREMENT` field in MySQL whereas it becomes a `serial` in PostgreSQL (which is a positive integer).\r\n\r\n**The resolution**\r\nThis patch updates the MySQL version to use the `serial` datatype (which is just a macro for `bigint unsigned not null auto_increment unique`).\r\n\r\n**Caveats**\r\nThe MySQL `serial` datatype might introduce too many unwanted restrictions. If the community thinks this might break too much code, I would suggest to at least make the MySQL version unsigned too, to increase the consistency between the DB adapters.\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/django/django/issues/comments/224686702","html_url":"https://github.com/django/django/pull/6746#issuecomment-224686702","issue_url":"https://api.github.com/repos/django/django/issues/6746","id":224686702,"user":{"login":"hellerve","id":7725188,"avatar_url":"https://avatars.githubusercontent.com/u/7725188?v=3","gravatar_id":"","url":"https://api.github.com/users/hellerve","html_url":"https://github.com/hellerve","followers_url":"https://api.github.com/users/hellerve/followers","following_url":"https://api.github.com/users/hellerve/following{/other_user}","gists_url":"https://api.github.com/users/hellerve/gists{/gist_id}","starred_url":"https://api.github.com/users/hellerve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellerve/subscriptions","organizations_url":"https://api.github.com/users/hellerve/orgs","repos_url":"https://api.github.com/users/hellerve/repos","events_url":"https://api.github.com/users/hellerve/events{/privacy}","received_events_url":"https://api.github.com/users/hellerve/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T18:36:03Z","updated_at":"2016-06-08T18:36:03Z","body":"That is possible - I was unaware of the existance of that ticket. I will review it and get back at you. I am really interested in resolving this, since it affects a project I maintain; though I do understand my simple approach might fall short in that respect."}}
{"actor":{"display_login":"hellerve"}}