{"action":"created","issue":{"url":"https://api.github.com/repos/c2corg/v6_api/issues/66","labels_url":"https://api.github.com/repos/c2corg/v6_api/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/c2corg/v6_api/issues/66/comments","events_url":"https://api.github.com/repos/c2corg/v6_api/issues/66/events","html_url":"https://github.com/c2corg/v6_api/pull/66","id":115282219,"number":66,"title":"Manually set inheritance column in migration","user":{"login":"tsauerwein","id":266474,"avatar_url":"https://avatars.githubusercontent.com/u/266474?v=3","gravatar_id":"","url":"https://api.github.com/users/tsauerwein","html_url":"https://github.com/tsauerwein","followers_url":"https://api.github.com/users/tsauerwein/followers","following_url":"https://api.github.com/users/tsauerwein/following{/other_user}","gists_url":"https://api.github.com/users/tsauerwein/gists{/gist_id}","starred_url":"https://api.github.com/users/tsauerwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsauerwein/subscriptions","organizations_url":"https://api.github.com/users/tsauerwein/orgs","repos_url":"https://api.github.com/users/tsauerwein/repos","events_url":"https://api.github.com/users/tsauerwein/events{/privacy}","received_events_url":"https://api.github.com/users/tsauerwein/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-05T13:19:18Z","updated_at":"2015-11-05T13:47:13Z","closed_at":"2015-11-05T13:31:42Z","pull_request":{"url":"https://api.github.com/repos/c2corg/v6_api/pulls/66","html_url":"https://github.com/c2corg/v6_api/pull/66","diff_url":"https://github.com/c2corg/v6_api/pull/66.diff","patch_url":"https://github.com/c2corg/v6_api/pull/66.patch"},"body":"The type column in the documents table is the [discriminator column](http://docs.sqlalchemy.org/en/rel_1_0/orm/inheritance.html#joined-table-inheritance) for the inheritance. Usually this column is set automatically by SQLAlchemy. But when doing bulk-insertions, it seems that you have to set it manually.\r\n\r\nCloses #64 "},"comment":{"url":"https://api.github.com/repos/c2corg/v6_api/issues/comments/154062342","html_url":"https://github.com/c2corg/v6_api/pull/66#issuecomment-154062342","issue_url":"https://api.github.com/repos/c2corg/v6_api/issues/66","id":154062342,"user":{"login":"asaunier","id":1192331,"avatar_url":"https://avatars.githubusercontent.com/u/1192331?v=3","gravatar_id":"","url":"https://api.github.com/users/asaunier","html_url":"https://github.com/asaunier","followers_url":"https://api.github.com/users/asaunier/followers","following_url":"https://api.github.com/users/asaunier/following{/other_user}","gists_url":"https://api.github.com/users/asaunier/gists{/gist_id}","starred_url":"https://api.github.com/users/asaunier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaunier/subscriptions","organizations_url":"https://api.github.com/users/asaunier/orgs","repos_url":"https://api.github.com/users/asaunier/repos","events_url":"https://api.github.com/users/asaunier/events{/privacy}","received_events_url":"https://api.github.com/users/asaunier/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T13:47:13Z","updated_at":"2015-11-05T13:47:13Z","body":"Makes sense. Thanks for answering."}}