{"action":"created","comment":{"url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/comments/36699373","id":36699373,"diff_hunk":"@@ -6,3 +7,8 @@\n def test_configure_migration_context():\n     context = migration.MigrationContext.configure(url='redshift+psycopg2://mydb')\n     assert isinstance(context.impl, dialect.RedshiftImpl)\n+\n+\n+def test_rename_table():\n+    compiler = dialect.RedShiftDDLCompiler(dialect.RedshiftDialect(), None)\n+    assert compiler.process(RenameTable(\"old\", \"new\", \"scheme\")) == 'ALTER TABLE scheme.\"old\" RENAME TO \"new\"'","path":"tests/test_alembic_dialect.py","position":13,"original_position":13,"commit_id":"ee8d8f5690c062a1550ee686611337e08913dc3b","original_commit_id":"ee8d8f5690c062a1550ee686611337e08913dc3b","user":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"body":"Also it's schema not scheme","created_at":"2015-08-11T00:03:50Z","updated_at":"2015-08-11T00:03:50Z","html_url":"https://github.com/graingert/redshift_sqlalchemy/pull/7#discussion_r36699373","pull_request_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/comments/36699373"},"html":{"href":"https://github.com/graingert/redshift_sqlalchemy/pull/7#discussion_r36699373"},"pull_request":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/7","id":42061678,"html_url":"https://github.com/graingert/redshift_sqlalchemy/pull/7","diff_url":"https://github.com/graingert/redshift_sqlalchemy/pull/7.diff","patch_url":"https://github.com/graingert/redshift_sqlalchemy/pull/7.patch","issue_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/7","number":7,"state":"open","locked":false,"title":"Compile Alembic's RenameTable the Postgres way","user":{"login":"bouk","id":97820,"avatar_url":"https://avatars.githubusercontent.com/u/97820?v=3","gravatar_id":"","url":"https://api.github.com/users/bouk","html_url":"https://github.com/bouk","followers_url":"https://api.github.com/users/bouk/followers","following_url":"https://api.github.com/users/bouk/following{/other_user}","gists_url":"https://api.github.com/users/bouk/gists{/gist_id}","starred_url":"https://api.github.com/users/bouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bouk/subscriptions","organizations_url":"https://api.github.com/users/bouk/orgs","repos_url":"https://api.github.com/users/bouk/repos","events_url":"https://api.github.com/users/bouk/events{/privacy}","received_events_url":"https://api.github.com/users/bouk/received_events","type":"User","site_admin":false},"body":"@graingert this fixes an issue where RenameTable would be compiled as\r\n\r\n`ALTER TABLE scheme.\"old\" RENAME TO scheme.\"new\"`","created_at":"2015-08-10T20:22:05Z","updated_at":"2015-08-11T00:03:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"990a1c22d9965f2098a4416bf675eda8f4df17d0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/7/commits","review_comments_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/7/comments","review_comment_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/7/comments","statuses_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/statuses/ee8d8f5690c062a1550ee686611337e08913dc3b","head":{"label":"bouk:compile-rename-properly","ref":"compile-rename-properly","sha":"ee8d8f5690c062a1550ee686611337e08913dc3b","user":{"login":"bouk","id":97820,"avatar_url":"https://avatars.githubusercontent.com/u/97820?v=3","gravatar_id":"","url":"https://api.github.com/users/bouk","html_url":"https://github.com/bouk","followers_url":"https://api.github.com/users/bouk/followers","following_url":"https://api.github.com/users/bouk/following{/other_user}","gists_url":"https://api.github.com/users/bouk/gists{/gist_id}","starred_url":"https://api.github.com/users/bouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bouk/subscriptions","organizations_url":"https://api.github.com/users/bouk/orgs","repos_url":"https://api.github.com/users/bouk/repos","events_url":"https://api.github.com/users/bouk/events{/privacy}","received_events_url":"https://api.github.com/users/bouk/received_events","type":"User","site_admin":false},"repo":{"id":40497248,"name":"redshift_sqlalchemy","full_name":"bouk/redshift_sqlalchemy","owner":{"login":"bouk","id":97820,"avatar_url":"https://avatars.githubusercontent.com/u/97820?v=3","gravatar_id":"","url":"https://api.github.com/users/bouk","html_url":"https://github.com/bouk","followers_url":"https://api.github.com/users/bouk/followers","following_url":"https://api.github.com/users/bouk/following{/other_user}","gists_url":"https://api.github.com/users/bouk/gists{/gist_id}","starred_url":"https://api.github.com/users/bouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bouk/subscriptions","organizations_url":"https://api.github.com/users/bouk/orgs","repos_url":"https://api.github.com/users/bouk/repos","events_url":"https://api.github.com/users/bouk/events{/privacy}","received_events_url":"https://api.github.com/users/bouk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bouk/redshift_sqlalchemy","description":"Amazon Redshift SQLAlchemy Dialect","fork":true,"url":"https://api.github.com/repos/bouk/redshift_sqlalchemy","forks_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/forks","keys_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/teams","hooks_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/hooks","issue_events_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/issues/events{/number}","events_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/events","assignees_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/assignees{/user}","branches_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/branches{/branch}","tags_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/tags","blobs_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/git/refs{/sha}","trees_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/statuses/{sha}","languages_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/languages","stargazers_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/stargazers","contributors_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/contributors","subscribers_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/subscribers","subscription_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/subscription","commits_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/commits{/sha}","git_commits_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/git/commits{/sha}","comments_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/comments{/number}","issue_comment_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/issues/comments{/number}","contents_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/contents/{+path}","compare_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/merges","archive_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/downloads","issues_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/issues{/number}","pulls_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/pulls{/number}","milestones_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/milestones{/number}","notifications_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/labels{/name}","releases_url":"https://api.github.com/repos/bouk/redshift_sqlalchemy/releases{/id}","created_at":"2015-08-10T17:55:54Z","updated_at":"2015-08-10T17:55:54Z","pushed_at":"2015-08-10T20:21:44Z","git_url":"git://github.com/bouk/redshift_sqlalchemy.git","ssh_url":"git@github.com:bouk/redshift_sqlalchemy.git","clone_url":"https://github.com/bouk/redshift_sqlalchemy.git","svn_url":"https://github.com/bouk/redshift_sqlalchemy","homepage":null,"size":255,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"graingert:master","ref":"master","sha":"7451840531fc5ab8f26a0cd5be1c1f8577f23f74","user":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"repo":{"id":35280897,"name":"redshift_sqlalchemy","full_name":"graingert/redshift_sqlalchemy","owner":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/graingert/redshift_sqlalchemy","description":"Amazon Redshift SQLAlchemy Dialect","fork":true,"url":"https://api.github.com/repos/graingert/redshift_sqlalchemy","forks_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/forks","keys_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/teams","hooks_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/hooks","issue_events_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/events{/number}","events_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/events","assignees_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/assignees{/user}","branches_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/branches{/branch}","tags_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/tags","blobs_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/refs{/sha}","trees_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/statuses/{sha}","languages_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/languages","stargazers_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/stargazers","contributors_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/contributors","subscribers_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/subscribers","subscription_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/subscription","commits_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/commits{/sha}","git_commits_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/commits{/sha}","comments_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/comments{/number}","issue_comment_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/comments{/number}","contents_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/contents/{+path}","compare_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/merges","archive_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/downloads","issues_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues{/number}","pulls_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls{/number}","milestones_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/milestones{/number}","notifications_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/labels{/name}","releases_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/releases{/id}","created_at":"2015-05-08T13:29:24Z","updated_at":"2015-08-10T22:14:18Z","pushed_at":"2015-08-10T20:22:05Z","git_url":"git://github.com/graingert/redshift_sqlalchemy.git","ssh_url":"git@github.com:graingert/redshift_sqlalchemy.git","clone_url":"https://github.com/graingert/redshift_sqlalchemy.git","svn_url":"https://github.com/graingert/redshift_sqlalchemy","homepage":null,"size":255,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/7"},"html":{"href":"https://github.com/graingert/redshift_sqlalchemy/pull/7"},"issue":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/7"},"comments":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/statuses/ee8d8f5690c062a1550ee686611337e08913dc3b"}}}}