{"action":"created","issue":{"url":"https://api.github.com/repos/OpenUpgrade/OpenUpgrade/issues/322","labels_url":"https://api.github.com/repos/OpenUpgrade/OpenUpgrade/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/OpenUpgrade/OpenUpgrade/issues/322/comments","events_url":"https://api.github.com/repos/OpenUpgrade/OpenUpgrade/issues/322/events","html_url":"https://github.com/OpenUpgrade/OpenUpgrade/pull/322","id":89489730,"number":322,"title":"[IMP] account: Synchronize partner_id on account invoice lines","user":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-19T07:18:27Z","updated_at":"2015-06-19T07:53:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenUpgrade/OpenUpgrade/pulls/322","html_url":"https://github.com/OpenUpgrade/OpenUpgrade/pull/322","diff_url":"https://github.com/OpenUpgrade/OpenUpgrade/pull/322.diff","patch_url":"https://github.com/OpenUpgrade/OpenUpgrade/pull/322.patch"},"body":"I have ended up in several migrations with the same foreign key error in the account invoice line, so this little method avoid the issue. Anyways, in the best case, this SQL runs with no modifications."},"comment":{"url":"https://api.github.com/repos/OpenUpgrade/OpenUpgrade/issues/comments/113417578","html_url":"https://github.com/OpenUpgrade/OpenUpgrade/pull/322#issuecomment-113417578","issue_url":"https://api.github.com/repos/OpenUpgrade/OpenUpgrade/issues/322","id":113417578,"user":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T07:53:39Z","updated_at":"2015-06-19T07:53:39Z","body":"I think it's a bug of the old ORM dealing with related fields, but I didn't investigate further."}}