{"action":"opened","number":666,"pull_request":{"url":"https://api.github.com/repos/jinzhu/gorm/pulls/666","id":45625009,"html_url":"https://github.com/jinzhu/gorm/pull/666","diff_url":"https://github.com/jinzhu/gorm/pull/666.diff","patch_url":"https://github.com/jinzhu/gorm/pull/666.patch","issue_url":"https://api.github.com/repos/jinzhu/gorm/issues/666","number":666,"state":"open","locked":false,"title":"Support the AUTOINCREMENT keyword on SQLite.","user":{"login":"vibhav","id":283066,"avatar_url":"https://avatars.githubusercontent.com/u/283066?v=3","gravatar_id":"","url":"https://api.github.com/users/vibhav","html_url":"https://github.com/vibhav","followers_url":"https://api.github.com/users/vibhav/followers","following_url":"https://api.github.com/users/vibhav/following{/other_user}","gists_url":"https://api.github.com/users/vibhav/gists{/gist_id}","starred_url":"https://api.github.com/users/vibhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vibhav/subscriptions","organizations_url":"https://api.github.com/users/vibhav/orgs","repos_url":"https://api.github.com/users/vibhav/repos","events_url":"https://api.github.com/users/vibhav/events{/privacy}","received_events_url":"https://api.github.com/users/vibhav/received_events","type":"User","site_admin":false},"body":"Omit the \"PRIMARY KEY\" clause at the end of the create statement if\r\nany column's SQL tags already contains the PRIMARY KEY constraint.\r\n\r\nSQLite requires the AUTOINCREMENT keyword to be specified on columns\r\nwith an INTEGER type and a PRIMARY KEY constraint: \r\nhttps://www.sqlite.org/autoinc.html.\r\n","created_at":"2015-09-22T03:59:33Z","updated_at":"2015-09-22T03:59:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jinzhu/gorm/pulls/666/commits","review_comments_url":"https://api.github.com/repos/jinzhu/gorm/pulls/666/comments","review_comment_url":"https://api.github.com/repos/jinzhu/gorm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jinzhu/gorm/issues/666/comments","statuses_url":"https://api.github.com/repos/jinzhu/gorm/statuses/1d8292c5abd112ddd66381a80d7e18b7700027f3","head":{"label":"defend7:sqlite_autoincrement","ref":"sqlite_autoincrement","sha":"1d8292c5abd112ddd66381a80d7e18b7700027f3","user":{"login":"defend7","id":7661700,"avatar_url":"https://avatars.githubusercontent.com/u/7661700?v=3","gravatar_id":"","url":"https://api.github.com/users/defend7","html_url":"https://github.com/defend7","followers_url":"https://api.github.com/users/defend7/followers","following_url":"https://api.github.com/users/defend7/following{/other_user}","gists_url":"https://api.github.com/users/defend7/gists{/gist_id}","starred_url":"https://api.github.com/users/defend7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defend7/subscriptions","organizations_url":"https://api.github.com/users/defend7/orgs","repos_url":"https://api.github.com/users/defend7/repos","events_url":"https://api.github.com/users/defend7/events{/privacy}","received_events_url":"https://api.github.com/users/defend7/received_events","type":"Organization","site_admin":false},"repo":{"id":42904942,"name":"gorm","full_name":"defend7/gorm","owner":{"login":"defend7","id":7661700,"avatar_url":"https://avatars.githubusercontent.com/u/7661700?v=3","gravatar_id":"","url":"https://api.github.com/users/defend7","html_url":"https://github.com/defend7","followers_url":"https://api.github.com/users/defend7/followers","following_url":"https://api.github.com/users/defend7/following{/other_user}","gists_url":"https://api.github.com/users/defend7/gists{/gist_id}","starred_url":"https://api.github.com/users/defend7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defend7/subscriptions","organizations_url":"https://api.github.com/users/defend7/orgs","repos_url":"https://api.github.com/users/defend7/repos","events_url":"https://api.github.com/users/defend7/events{/privacy}","received_events_url":"https://api.github.com/users/defend7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/defend7/gorm","description":"The fantastic ORM library for Golang, aims to be developer friendly","fork":true,"url":"https://api.github.com/repos/defend7/gorm","forks_url":"https://api.github.com/repos/defend7/gorm/forks","keys_url":"https://api.github.com/repos/defend7/gorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/defend7/gorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/defend7/gorm/teams","hooks_url":"https://api.github.com/repos/defend7/gorm/hooks","issue_events_url":"https://api.github.com/repos/defend7/gorm/issues/events{/number}","events_url":"https://api.github.com/repos/defend7/gorm/events","assignees_url":"https://api.github.com/repos/defend7/gorm/assignees{/user}","branches_url":"https://api.github.com/repos/defend7/gorm/branches{/branch}","tags_url":"https://api.github.com/repos/defend7/gorm/tags","blobs_url":"https://api.github.com/repos/defend7/gorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/defend7/gorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/defend7/gorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/defend7/gorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/defend7/gorm/statuses/{sha}","languages_url":"https://api.github.com/repos/defend7/gorm/languages","stargazers_url":"https://api.github.com/repos/defend7/gorm/stargazers","contributors_url":"https://api.github.com/repos/defend7/gorm/contributors","subscribers_url":"https://api.github.com/repos/defend7/gorm/subscribers","subscription_url":"https://api.github.com/repos/defend7/gorm/subscription","commits_url":"https://api.github.com/repos/defend7/gorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/defend7/gorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/defend7/gorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/defend7/gorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/defend7/gorm/contents/{+path}","compare_url":"https://api.github.com/repos/defend7/gorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/defend7/gorm/merges","archive_url":"https://api.github.com/repos/defend7/gorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/defend7/gorm/downloads","issues_url":"https://api.github.com/repos/defend7/gorm/issues{/number}","pulls_url":"https://api.github.com/repos/defend7/gorm/pulls{/number}","milestones_url":"https://api.github.com/repos/defend7/gorm/milestones{/number}","notifications_url":"https://api.github.com/repos/defend7/gorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/defend7/gorm/labels{/name}","releases_url":"https://api.github.com/repos/defend7/gorm/releases{/id}","created_at":"2015-09-22T01:57:01Z","updated_at":"2015-09-22T01:57:02Z","pushed_at":"2015-09-22T03:53:55Z","git_url":"git://github.com/defend7/gorm.git","ssh_url":"git@github.com:defend7/gorm.git","clone_url":"https://github.com/defend7/gorm.git","svn_url":"https://github.com/defend7/gorm","homepage":"","size":3567,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jinzhu:master","ref":"master","sha":"19aacb8fbbc8b93f55a428d53839469a5828b890","user":{"login":"jinzhu","id":6843,"avatar_url":"https://avatars.githubusercontent.com/u/6843?v=3","gravatar_id":"","url":"https://api.github.com/users/jinzhu","html_url":"https://github.com/jinzhu","followers_url":"https://api.github.com/users/jinzhu/followers","following_url":"https://api.github.com/users/jinzhu/following{/other_user}","gists_url":"https://api.github.com/users/jinzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/jinzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinzhu/subscriptions","organizations_url":"https://api.github.com/users/jinzhu/orgs","repos_url":"https://api.github.com/users/jinzhu/repos","events_url":"https://api.github.com/users/jinzhu/events{/privacy}","received_events_url":"https://api.github.com/users/jinzhu/received_events","type":"User","site_admin":false},"repo":{"id":13855476,"name":"gorm","full_name":"jinzhu/gorm","owner":{"login":"jinzhu","id":6843,"avatar_url":"https://avatars.githubusercontent.com/u/6843?v=3","gravatar_id":"","url":"https://api.github.com/users/jinzhu","html_url":"https://github.com/jinzhu","followers_url":"https://api.github.com/users/jinzhu/followers","following_url":"https://api.github.com/users/jinzhu/following{/other_user}","gists_url":"https://api.github.com/users/jinzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/jinzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinzhu/subscriptions","organizations_url":"https://api.github.com/users/jinzhu/orgs","repos_url":"https://api.github.com/users/jinzhu/repos","events_url":"https://api.github.com/users/jinzhu/events{/privacy}","received_events_url":"https://api.github.com/users/jinzhu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jinzhu/gorm","description":"The fantastic ORM library for Golang, aims to be developer friendly","fork":false,"url":"https://api.github.com/repos/jinzhu/gorm","forks_url":"https://api.github.com/repos/jinzhu/gorm/forks","keys_url":"https://api.github.com/repos/jinzhu/gorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jinzhu/gorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jinzhu/gorm/teams","hooks_url":"https://api.github.com/repos/jinzhu/gorm/hooks","issue_events_url":"https://api.github.com/repos/jinzhu/gorm/issues/events{/number}","events_url":"https://api.github.com/repos/jinzhu/gorm/events","assignees_url":"https://api.github.com/repos/jinzhu/gorm/assignees{/user}","branches_url":"https://api.github.com/repos/jinzhu/gorm/branches{/branch}","tags_url":"https://api.github.com/repos/jinzhu/gorm/tags","blobs_url":"https://api.github.com/repos/jinzhu/gorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jinzhu/gorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jinzhu/gorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/jinzhu/gorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jinzhu/gorm/statuses/{sha}","languages_url":"https://api.github.com/repos/jinzhu/gorm/languages","stargazers_url":"https://api.github.com/repos/jinzhu/gorm/stargazers","contributors_url":"https://api.github.com/repos/jinzhu/gorm/contributors","subscribers_url":"https://api.github.com/repos/jinzhu/gorm/subscribers","subscription_url":"https://api.github.com/repos/jinzhu/gorm/subscription","commits_url":"https://api.github.com/repos/jinzhu/gorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/jinzhu/gorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/jinzhu/gorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/jinzhu/gorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/jinzhu/gorm/contents/{+path}","compare_url":"https://api.github.com/repos/jinzhu/gorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jinzhu/gorm/merges","archive_url":"https://api.github.com/repos/jinzhu/gorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jinzhu/gorm/downloads","issues_url":"https://api.github.com/repos/jinzhu/gorm/issues{/number}","pulls_url":"https://api.github.com/repos/jinzhu/gorm/pulls{/number}","milestones_url":"https://api.github.com/repos/jinzhu/gorm/milestones{/number}","notifications_url":"https://api.github.com/repos/jinzhu/gorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jinzhu/gorm/labels{/name}","releases_url":"https://api.github.com/repos/jinzhu/gorm/releases{/id}","created_at":"2013-10-25T08:31:38Z","updated_at":"2015-09-21T22:34:45Z","pushed_at":"2015-09-18T02:28:15Z","git_url":"git://github.com/jinzhu/gorm.git","ssh_url":"git@github.com:jinzhu/gorm.git","clone_url":"https://github.com/jinzhu/gorm.git","svn_url":"https://github.com/jinzhu/gorm","homepage":"","size":3567,"stargazers_count":2520,"watchers_count":2520,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":270,"mirror_url":null,"open_issues_count":75,"forks":270,"open_issues":75,"watchers":2520,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jinzhu/gorm/pulls/666"},"html":{"href":"https://github.com/jinzhu/gorm/pull/666"},"issue":{"href":"https://api.github.com/repos/jinzhu/gorm/issues/666"},"comments":{"href":"https://api.github.com/repos/jinzhu/gorm/issues/666/comments"},"review_comments":{"href":"https://api.github.com/repos/jinzhu/gorm/pulls/666/comments"},"review_comment":{"href":"https://api.github.com/repos/jinzhu/gorm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jinzhu/gorm/pulls/666/commits"},"statuses":{"href":"https://api.github.com/repos/jinzhu/gorm/statuses/1d8292c5abd112ddd66381a80d7e18b7700027f3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":2,"changed_files":2}}