{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/11399","repository_url":"https://api.github.com/repos/edx/edx-platform","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/11399/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/11399/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/11399/events","html_url":"https://github.com/edx/edx-platform/pull/11399","id":130499499,"number":11399,"title":"Don't use using() in migrations","user":{"login":"jibsheet","id":57604,"avatar_url":"https://avatars.githubusercontent.com/u/57604?v=3","gravatar_id":"","url":"https://api.github.com/users/jibsheet","html_url":"https://github.com/jibsheet","followers_url":"https://api.github.com/users/jibsheet/followers","following_url":"https://api.github.com/users/jibsheet/following{/other_user}","gists_url":"https://api.github.com/users/jibsheet/gists{/gist_id}","starred_url":"https://api.github.com/users/jibsheet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jibsheet/subscriptions","organizations_url":"https://api.github.com/users/jibsheet/orgs","repos_url":"https://api.github.com/users/jibsheet/repos","events_url":"https://api.github.com/users/jibsheet/events{/privacy}","received_events_url":"https://api.github.com/users/jibsheet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-01T22:05:42Z","updated_at":"2016-02-04T15:53:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/11399","html_url":"https://github.com/edx/edx-platform/pull/11399","diff_url":"https://github.com/edx/edx-platform/pull/11399.diff","patch_url":"https://github.com/edx/edx-platform/pull/11399.patch"},"body":"   Remove uses of using() from migrations\r\n    \r\nThis hardcoded the db_alias fetched from schema_editor and forces django\r\nto try and migrate any second database you use, rather than routing to\r\nthe default database.  In testing a build from scratch, these do not\r\nappear needed.\r\n    \r\nUsing using() prevents us from using multiple databases behind edxapp."},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/179912599","html_url":"https://github.com/edx/edx-platform/pull/11399#issuecomment-179912599","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/11399","id":179912599,"user":{"login":"nedbat","id":23789,"avatar_url":"https://avatars.githubusercontent.com/u/23789?v=3","gravatar_id":"","url":"https://api.github.com/users/nedbat","html_url":"https://github.com/nedbat","followers_url":"https://api.github.com/users/nedbat/followers","following_url":"https://api.github.com/users/nedbat/following{/other_user}","gists_url":"https://api.github.com/users/nedbat/gists{/gist_id}","starred_url":"https://api.github.com/users/nedbat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nedbat/subscriptions","organizations_url":"https://api.github.com/users/nedbat/orgs","repos_url":"https://api.github.com/users/nedbat/repos","events_url":"https://api.github.com/users/nedbat/events{/privacy}","received_events_url":"https://api.github.com/users/nedbat/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T15:53:41Z","updated_at":"2016-02-04T15:53:41Z","body":"If we think the migrations were auto-created without `using`, and misguided developers added them in explicitly, then :+1:.  But if the migrations were created with `using`, and we think we have to manually remove them, then I'm concerned."}}