{"action":"created","issue":{"url":"https://api.github.com/repos/omab/python-social-auth/issues/794","repository_url":"https://api.github.com/repos/omab/python-social-auth","labels_url":"https://api.github.com/repos/omab/python-social-auth/issues/794/labels{/name}","comments_url":"https://api.github.com/repos/omab/python-social-auth/issues/794/comments","events_url":"https://api.github.com/repos/omab/python-social-auth/issues/794/events","html_url":"https://github.com/omab/python-social-auth/pull/794","id":119818784,"number":794,"title":"Migrations break when upgrading from django-social-auth","user":{"login":"facundoolano","id":1040941,"avatar_url":"https://avatars.githubusercontent.com/u/1040941?v=3","gravatar_id":"","url":"https://api.github.com/users/facundoolano","html_url":"https://github.com/facundoolano","followers_url":"https://api.github.com/users/facundoolano/followers","following_url":"https://api.github.com/users/facundoolano/following{/other_user}","gists_url":"https://api.github.com/users/facundoolano/gists{/gist_id}","starred_url":"https://api.github.com/users/facundoolano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facundoolano/subscriptions","organizations_url":"https://api.github.com/users/facundoolano/orgs","repos_url":"https://api.github.com/users/facundoolano/repos","events_url":"https://api.github.com/users/facundoolano/events{/privacy}","received_events_url":"https://api.github.com/users/facundoolano/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-12-01T22:06:29Z","updated_at":"2016-12-04T13:03:01Z","closed_at":"2016-12-04T13:03:01Z","pull_request":{"url":"https://api.github.com/repos/omab/python-social-auth/pulls/794","html_url":"https://github.com/omab/python-social-auth/pull/794","diff_url":"https://github.com/omab/python-social-auth/pull/794.diff","patch_url":"https://github.com/omab/python-social-auth/pull/794.patch"},"body":"My project was using django-social-auth and we decided to upgrade to use this newer package. The problem is the migrations didn't seem prepared for this:\n- If I run `manage.py migrate`, I get a \"Table social_auth_association already exists\" error.\n- If I fake the initial migration, subsequent ones will fail because the table for the Code model (which didn't exist in dsa and is created in that initial migration) is missing.\n- If I fake all the migrations it doesn't fail, but the social_auth_code is never created.\n\nMy solution was to edit the migrations so the social_auth_code table is not created in the initial migration but in the second. Then, the first migration can be faked and the rest will be applied without issues.\n"},"comment":{"url":"https://api.github.com/repos/omab/python-social-auth/issues/comments/264702717","html_url":"https://github.com/omab/python-social-auth/pull/794#issuecomment-264702717","issue_url":"https://api.github.com/repos/omab/python-social-auth/issues/794","id":264702717,"user":{"login":"omab","id":91022,"avatar_url":"https://avatars.githubusercontent.com/u/91022?v=3","gravatar_id":"","url":"https://api.github.com/users/omab","html_url":"https://github.com/omab","followers_url":"https://api.github.com/users/omab/followers","following_url":"https://api.github.com/users/omab/following{/other_user}","gists_url":"https://api.github.com/users/omab/gists{/gist_id}","starred_url":"https://api.github.com/users/omab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omab/subscriptions","organizations_url":"https://api.github.com/users/omab/orgs","repos_url":"https://api.github.com/users/omab/repos","events_url":"https://api.github.com/users/omab/events{/privacy}","received_events_url":"https://api.github.com/users/omab/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T13:03:01Z","updated_at":"2016-12-04T13:03:01Z","body":"I'm closing this since it's very outdated by now.\r\n\r\nThanks!"}}
{"actor":{"display_login":"omab"}}