{"action":"closed","number":5674,"pull_request":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/5674","id":64568804,"html_url":"https://github.com/sequelize/sequelize/pull/5674","diff_url":"https://github.com/sequelize/sequelize/pull/5674.diff","patch_url":"https://github.com/sequelize/sequelize/pull/5674.patch","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/5674","number":5674,"state":"closed","locked":false,"title":"Use transaction when creating index","user":{"login":"xkjyeah","id":2659143,"avatar_url":"https://avatars.githubusercontent.com/u/2659143?v=3","gravatar_id":"","url":"https://api.github.com/users/xkjyeah","html_url":"https://github.com/xkjyeah","followers_url":"https://api.github.com/users/xkjyeah/followers","following_url":"https://api.github.com/users/xkjyeah/following{/other_user}","gists_url":"https://api.github.com/users/xkjyeah/gists{/gist_id}","starred_url":"https://api.github.com/users/xkjyeah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xkjyeah/subscriptions","organizations_url":"https://api.github.com/users/xkjyeah/orgs","repos_url":"https://api.github.com/users/xkjyeah/repos","events_url":"https://api.github.com/users/xkjyeah/events{/privacy}","received_events_url":"https://api.github.com/users/xkjyeah/received_events","type":"User","site_admin":false},"body":"Creating a table under a transaction fails if the table has indexes on it. This is because the index is created outside of the transaction, and the table is invisible outside the transaction.","created_at":"2016-03-30T04:00:51Z","updated_at":"2016-03-30T10:28:25Z","closed_at":"2016-03-30T10:28:25Z","merged_at":"2016-03-30T10:28:25Z","merge_commit_sha":"9ddb152e7715ccb463b16328c792d73afcbd5fd5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sequelize/sequelize/pulls/5674/commits","review_comments_url":"https://api.github.com/repos/sequelize/sequelize/pulls/5674/comments","review_comment_url":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/5674/comments","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/865edc6e5842fde47e0dd8c1776fcad048f6b4bb","head":{"label":"xkjyeah:master","ref":"master","sha":"865edc6e5842fde47e0dd8c1776fcad048f6b4bb","user":{"login":"xkjyeah","id":2659143,"avatar_url":"https://avatars.githubusercontent.com/u/2659143?v=3","gravatar_id":"","url":"https://api.github.com/users/xkjyeah","html_url":"https://github.com/xkjyeah","followers_url":"https://api.github.com/users/xkjyeah/followers","following_url":"https://api.github.com/users/xkjyeah/following{/other_user}","gists_url":"https://api.github.com/users/xkjyeah/gists{/gist_id}","starred_url":"https://api.github.com/users/xkjyeah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xkjyeah/subscriptions","organizations_url":"https://api.github.com/users/xkjyeah/orgs","repos_url":"https://api.github.com/users/xkjyeah/repos","events_url":"https://api.github.com/users/xkjyeah/events{/privacy}","received_events_url":"https://api.github.com/users/xkjyeah/received_events","type":"User","site_admin":false},"repo":{"id":55031206,"name":"sequelize","full_name":"xkjyeah/sequelize","owner":{"login":"xkjyeah","id":2659143,"avatar_url":"https://avatars.githubusercontent.com/u/2659143?v=3","gravatar_id":"","url":"https://api.github.com/users/xkjyeah","html_url":"https://github.com/xkjyeah","followers_url":"https://api.github.com/users/xkjyeah/followers","following_url":"https://api.github.com/users/xkjyeah/following{/other_user}","gists_url":"https://api.github.com/users/xkjyeah/gists{/gist_id}","starred_url":"https://api.github.com/users/xkjyeah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xkjyeah/subscriptions","organizations_url":"https://api.github.com/users/xkjyeah/orgs","repos_url":"https://api.github.com/users/xkjyeah/repos","events_url":"https://api.github.com/users/xkjyeah/events{/privacy}","received_events_url":"https://api.github.com/users/xkjyeah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xkjyeah/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":true,"url":"https://api.github.com/repos/xkjyeah/sequelize","forks_url":"https://api.github.com/repos/xkjyeah/sequelize/forks","keys_url":"https://api.github.com/repos/xkjyeah/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xkjyeah/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xkjyeah/sequelize/teams","hooks_url":"https://api.github.com/repos/xkjyeah/sequelize/hooks","issue_events_url":"https://api.github.com/repos/xkjyeah/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/xkjyeah/sequelize/events","assignees_url":"https://api.github.com/repos/xkjyeah/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/xkjyeah/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/xkjyeah/sequelize/tags","blobs_url":"https://api.github.com/repos/xkjyeah/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xkjyeah/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xkjyeah/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/xkjyeah/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xkjyeah/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/xkjyeah/sequelize/languages","stargazers_url":"https://api.github.com/repos/xkjyeah/sequelize/stargazers","contributors_url":"https://api.github.com/repos/xkjyeah/sequelize/contributors","subscribers_url":"https://api.github.com/repos/xkjyeah/sequelize/subscribers","subscription_url":"https://api.github.com/repos/xkjyeah/sequelize/subscription","commits_url":"https://api.github.com/repos/xkjyeah/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/xkjyeah/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/xkjyeah/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/xkjyeah/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/xkjyeah/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/xkjyeah/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xkjyeah/sequelize/merges","archive_url":"https://api.github.com/repos/xkjyeah/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xkjyeah/sequelize/downloads","issues_url":"https://api.github.com/repos/xkjyeah/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/xkjyeah/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/xkjyeah/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/xkjyeah/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xkjyeah/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/xkjyeah/sequelize/releases{/id}","deployments_url":"https://api.github.com/repos/xkjyeah/sequelize/deployments","created_at":"2016-03-30T03:59:42Z","updated_at":"2016-03-30T03:59:48Z","pushed_at":"2016-03-30T04:00:10Z","git_url":"git://github.com/xkjyeah/sequelize.git","ssh_url":"git@github.com:xkjyeah/sequelize.git","clone_url":"https://github.com/xkjyeah/sequelize.git","svn_url":"https://github.com/xkjyeah/sequelize","homepage":"http://sequelizejs.com","size":17153,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sequelize:master","ref":"master","sha":"1ba6f163dcea6b40b67ff74f88747775484f8895","user":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"repo":{"id":790359,"name":"sequelize","full_name":"sequelize/sequelize","owner":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sequelize/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":false,"url":"https://api.github.com/repos/sequelize/sequelize","forks_url":"https://api.github.com/repos/sequelize/sequelize/forks","keys_url":"https://api.github.com/repos/sequelize/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sequelize/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sequelize/sequelize/teams","hooks_url":"https://api.github.com/repos/sequelize/sequelize/hooks","issue_events_url":"https://api.github.com/repos/sequelize/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/sequelize/sequelize/events","assignees_url":"https://api.github.com/repos/sequelize/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/sequelize/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/sequelize/sequelize/tags","blobs_url":"https://api.github.com/repos/sequelize/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sequelize/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sequelize/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/sequelize/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/sequelize/sequelize/languages","stargazers_url":"https://api.github.com/repos/sequelize/sequelize/stargazers","contributors_url":"https://api.github.com/repos/sequelize/sequelize/contributors","subscribers_url":"https://api.github.com/repos/sequelize/sequelize/subscribers","subscription_url":"https://api.github.com/repos/sequelize/sequelize/subscription","commits_url":"https://api.github.com/repos/sequelize/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/sequelize/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/sequelize/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/sequelize/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/sequelize/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/sequelize/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sequelize/sequelize/merges","archive_url":"https://api.github.com/repos/sequelize/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sequelize/sequelize/downloads","issues_url":"https://api.github.com/repos/sequelize/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/sequelize/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/sequelize/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/sequelize/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sequelize/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/sequelize/sequelize/releases{/id}","deployments_url":"https://api.github.com/repos/sequelize/sequelize/deployments","created_at":"2010-07-22T07:11:11Z","updated_at":"2016-03-30T09:26:56Z","pushed_at":"2016-03-30T10:28:25Z","git_url":"git://github.com/sequelize/sequelize.git","ssh_url":"git@github.com:sequelize/sequelize.git","clone_url":"https://github.com/sequelize/sequelize.git","svn_url":"https://github.com/sequelize/sequelize","homepage":"http://sequelizejs.com","size":53286,"stargazers_count":6115,"watchers_count":6115,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1297,"mirror_url":null,"open_issues_count":714,"forks":1297,"open_issues":714,"watchers":6115,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/5674"},"html":{"href":"https://github.com/sequelize/sequelize/pull/5674"},"issue":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/5674"},"comments":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/5674/comments"},"review_comments":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/5674/comments"},"review_comment":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/5674/commits"},"statuses":{"href":"https://api.github.com/repos/sequelize/sequelize/statuses/865edc6e5842fde47e0dd8c1776fcad048f6b4bb"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mickhansen","id":699049,"avatar_url":"https://avatars.githubusercontent.com/u/699049?v=3","gravatar_id":"","url":"https://api.github.com/users/mickhansen","html_url":"https://github.com/mickhansen","followers_url":"https://api.github.com/users/mickhansen/followers","following_url":"https://api.github.com/users/mickhansen/following{/other_user}","gists_url":"https://api.github.com/users/mickhansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mickhansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickhansen/subscriptions","organizations_url":"https://api.github.com/users/mickhansen/orgs","repos_url":"https://api.github.com/users/mickhansen/repos","events_url":"https://api.github.com/users/mickhansen/events{/privacy}","received_events_url":"https://api.github.com/users/mickhansen/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":1,"changed_files":1}}