{"action":"created","issue":{"url":"https://api.github.com/repos/django/django/issues/6738","repository_url":"https://api.github.com/repos/django/django","labels_url":"https://api.github.com/repos/django/django/issues/6738/labels{/name}","comments_url":"https://api.github.com/repos/django/django/issues/6738/comments","events_url":"https://api.github.com/repos/django/django/issues/6738/events","html_url":"https://github.com/django/django/pull/6738","id":158841574,"number":6738,"title":"Fixed #24424 -- Fixed SQLite migrations crash when removing the last column of a table.","user":{"login":"oxplot","id":483682,"avatar_url":"https://avatars.githubusercontent.com/u/483682?v=3","gravatar_id":"","url":"https://api.github.com/users/oxplot","html_url":"https://github.com/oxplot","followers_url":"https://api.github.com/users/oxplot/followers","following_url":"https://api.github.com/users/oxplot/following{/other_user}","gists_url":"https://api.github.com/users/oxplot/gists{/gist_id}","starred_url":"https://api.github.com/users/oxplot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxplot/subscriptions","organizations_url":"https://api.github.com/users/oxplot/orgs","repos_url":"https://api.github.com/users/oxplot/repos","events_url":"https://api.github.com/users/oxplot/events{/privacy}","received_events_url":"https://api.github.com/users/oxplot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-07T05:28:16Z","updated_at":"2016-06-07T14:21:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/6738","html_url":"https://github.com/django/django/pull/6738","diff_url":"https://github.com/django/django/pull/6738.diff","patch_url":"https://github.com/django/django/pull/6738.patch"},"body":"In case the migration has removed all fields but before dropping the\r\ntable (in case some other one-to-one relationship is still referencing\r\nit).\r\n\r\nAn example is a migration that removes the last foreign key field of a model that is referenced by the model whose foreign key is being removed (e.g. one-to-one relationship).\r\n\r\nAfter removing the last field, doing the copy generates an invalid INSERT such as this:\r\n\r\n```sql\r\nINSERT INTO \"app_model__new\" () SELECT  FROM \"app_model\" \r\n```\r\n\r\nAnother example is simply renaming a custom PK which the regression test in this PR covers."},"comment":{"url":"https://api.github.com/repos/django/django/issues/comments/224295774","html_url":"https://github.com/django/django/pull/6738#issuecomment-224295774","issue_url":"https://api.github.com/repos/django/django/issues/6738","id":224295774,"user":{"login":"oxplot","id":483682,"avatar_url":"https://avatars.githubusercontent.com/u/483682?v=3","gravatar_id":"","url":"https://api.github.com/users/oxplot","html_url":"https://github.com/oxplot","followers_url":"https://api.github.com/users/oxplot/followers","following_url":"https://api.github.com/users/oxplot/following{/other_user}","gists_url":"https://api.github.com/users/oxplot/gists{/gist_id}","starred_url":"https://api.github.com/users/oxplot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxplot/subscriptions","organizations_url":"https://api.github.com/users/oxplot/orgs","repos_url":"https://api.github.com/users/oxplot/repos","events_url":"https://api.github.com/users/oxplot/events{/privacy}","received_events_url":"https://api.github.com/users/oxplot/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T14:21:47Z","updated_at":"2016-06-07T14:21:47Z","body":"@timgraham I [agree](https://code.djangoproject.com/ticket/24424#comment:31) with @MarkusH 's [earlier comment](https://code.djangoproject.com/ticket/24424#comment:11) on this issue. But it's been quite a while and nothing is done so this fix seems to be something to move things along."}}
{"actor":{"display_login":"oxplot"}}