{"action":"created","comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/191076312","pull_request_review_id":123583628,"id":191076312,"diff_hunk":"@@ -926,15 +926,20 @@ def create_index_name(*args, **kwargs):\n                 name = self._create_index_name(*args, **kwargs)\n             return self.quote_name(name)\n \n+        index_columns = self._index_columns(table, columns, col_suffixes, opclasses)\n+\n         return Statement(\n             sql_create_index,\n             table=Table(table, self.quote_name),\n             name=IndexName(table, columns, suffix, create_index_name),\n             using=using,\n-            columns=Columns(table, columns, self.quote_name, col_suffixes=col_suffixes),\n+            columns=index_columns,\n             extra=tablespace_sql,\n         )\n \n+    def _index_columns(self, table, columns, col_suffixes, opclasses):","path":"django/db/backends/base/schema.py","position":25,"original_position":25,"commit_id":"e03f2ef16551061866544fb3fb10cefda774b16c","original_commit_id":"bf334ba306e87d47a5ebbd9faab446833a54dacc","user":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars1.githubusercontent.com/u/1843202?v=4","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"body":"This version of `_index_columns` is used when we're not on postgres - the postgres schema overrides it to handle when `opclasses` is set.","created_at":"2018-05-27T13:16:27Z","updated_at":"2018-05-27T13:16:27Z","html_url":"https://github.com/django/django/pull/9992#discussion_r191076312","pull_request_url":"https://api.github.com/repos/django/django/pulls/9992","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/191076312"},"html":{"href":"https://github.com/django/django/pull/9992#discussion_r191076312"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/9992"}},"in_reply_to_id":191071394},"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/9992","id":190778502,"html_url":"https://github.com/django/django/pull/9992","diff_url":"https://github.com/django/django/pull/9992.diff","patch_url":"https://github.com/django/django/pull/9992.patch","issue_url":"https://api.github.com/repos/django/django/issues/9992","number":9992,"state":"open","locked":false,"title":"Fixed #28077 -- Added PostgreSQL opclasses to Index","user":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars1.githubusercontent.com/u/1843202?v=4","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"body":"Continued from https://github.com/django/django/pull/9332.","created_at":"2018-05-27T09:26:31Z","updated_at":"2018-05-27T13:16:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"322ee6e21eb6cdecfbd249ff36d56018dba3b863","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/9992/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/9992/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/9992/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/e03f2ef16551061866544fb3fb10cefda774b16c","head":{"label":"Ian-Foote:ticket_28077","ref":"ticket_28077","sha":"e03f2ef16551061866544fb3fb10cefda774b16c","user":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars1.githubusercontent.com/u/1843202?v=4","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"repo":{"id":16351410,"name":"django","full_name":"Ian-Foote/django","owner":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars1.githubusercontent.com/u/1843202?v=4","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ian-Foote/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/Ian-Foote/django","forks_url":"https://api.github.com/repos/Ian-Foote/django/forks","keys_url":"https://api.github.com/repos/Ian-Foote/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ian-Foote/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ian-Foote/django/teams","hooks_url":"https://api.github.com/repos/Ian-Foote/django/hooks","issue_events_url":"https://api.github.com/repos/Ian-Foote/django/issues/events{/number}","events_url":"https://api.github.com/repos/Ian-Foote/django/events","assignees_url":"https://api.github.com/repos/Ian-Foote/django/assignees{/user}","branches_url":"https://api.github.com/repos/Ian-Foote/django/branches{/branch}","tags_url":"https://api.github.com/repos/Ian-Foote/django/tags","blobs_url":"https://api.github.com/repos/Ian-Foote/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ian-Foote/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ian-Foote/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ian-Foote/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ian-Foote/django/statuses/{sha}","languages_url":"https://api.github.com/repos/Ian-Foote/django/languages","stargazers_url":"https://api.github.com/repos/Ian-Foote/django/stargazers","contributors_url":"https://api.github.com/repos/Ian-Foote/django/contributors","subscribers_url":"https://api.github.com/repos/Ian-Foote/django/subscribers","subscription_url":"https://api.github.com/repos/Ian-Foote/django/subscription","commits_url":"https://api.github.com/repos/Ian-Foote/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ian-Foote/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ian-Foote/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ian-Foote/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ian-Foote/django/contents/{+path}","compare_url":"https://api.github.com/repos/Ian-Foote/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ian-Foote/django/merges","archive_url":"https://api.github.com/repos/Ian-Foote/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ian-Foote/django/downloads","issues_url":"https://api.github.com/repos/Ian-Foote/django/issues{/number}","pulls_url":"https://api.github.com/repos/Ian-Foote/django/pulls{/number}","milestones_url":"https://api.github.com/repos/Ian-Foote/django/milestones{/number}","notifications_url":"https://api.github.com/repos/Ian-Foote/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ian-Foote/django/labels{/name}","releases_url":"https://api.github.com/repos/Ian-Foote/django/releases{/id}","deployments_url":"https://api.github.com/repos/Ian-Foote/django/deployments","created_at":"2014-01-29T16:52:51Z","updated_at":"2018-05-26T08:29:42Z","pushed_at":"2018-05-27T10:53:24Z","git_url":"git://github.com/Ian-Foote/django.git","ssh_url":"git@github.com:Ian-Foote/django.git","clone_url":"https://github.com/Ian-Foote/django.git","svn_url":"https://github.com/Ian-Foote/django","homepage":"http://www.djangoproject.com/","size":169067,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"django:master","ref":"master","sha":"5cc81cd9eb69f5f7a711412c02039b435c393135","user":{"login":"django","id":27804,"avatar_url":"https://avatars2.githubusercontent.com/u/27804?v=4","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":4164482,"name":"django","full_name":"django/django","owner":{"login":"django","id":27804,"avatar_url":"https://avatars2.githubusercontent.com/u/27804?v=4","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/django","description":"The Web framework for perfectionists with deadlines.","fork":false,"url":"https://api.github.com/repos/django/django","forks_url":"https://api.github.com/repos/django/django/forks","keys_url":"https://api.github.com/repos/django/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django/teams","hooks_url":"https://api.github.com/repos/django/django/hooks","issue_events_url":"https://api.github.com/repos/django/django/issues/events{/number}","events_url":"https://api.github.com/repos/django/django/events","assignees_url":"https://api.github.com/repos/django/django/assignees{/user}","branches_url":"https://api.github.com/repos/django/django/branches{/branch}","tags_url":"https://api.github.com/repos/django/django/tags","blobs_url":"https://api.github.com/repos/django/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django/languages","stargazers_url":"https://api.github.com/repos/django/django/stargazers","contributors_url":"https://api.github.com/repos/django/django/contributors","subscribers_url":"https://api.github.com/repos/django/django/subscribers","subscription_url":"https://api.github.com/repos/django/django/subscription","commits_url":"https://api.github.com/repos/django/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django/contents/{+path}","compare_url":"https://api.github.com/repos/django/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django/merges","archive_url":"https://api.github.com/repos/django/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django/downloads","issues_url":"https://api.github.com/repos/django/django/issues{/number}","pulls_url":"https://api.github.com/repos/django/django/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django/labels{/name}","releases_url":"https://api.github.com/repos/django/django/releases{/id}","deployments_url":"https://api.github.com/repos/django/django/deployments","created_at":"2012-04-28T02:47:18Z","updated_at":"2018-05-27T13:13:24Z","pushed_at":"2018-05-27T13:01:54Z","git_url":"git://github.com/django/django.git","ssh_url":"git@github.com:django/django.git","clone_url":"https://github.com/django/django.git","svn_url":"https://github.com/django/django","homepage":"https://www.djangoproject.com/","size":177275,"stargazers_count":34148,"watchers_count":34148,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14445,"mirror_url":null,"archived":false,"open_issues_count":180,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":14445,"open_issues":180,"watchers":34148,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/9992"},"html":{"href":"https://github.com/django/django/pull/9992"},"issue":{"href":"https://api.github.com/repos/django/django/issues/9992"},"comments":{"href":"https://api.github.com/repos/django/django/issues/9992/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/9992/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/9992/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/e03f2ef16551061866544fb3fb10cefda774b16c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Ian-Foote"}}