{"action":"created","issue":{"url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2854","repository_url":"https://api.github.com/repos/openSUSE/open-build-service","labels_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2854/labels{/name}","comments_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2854/comments","events_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2854/events","html_url":"https://github.com/openSUSE/open-build-service/pull/2854","id":215044568,"number":2854,"title":"Make migrations run sequentially","user":{"login":"evanrolfe","id":9274,"avatar_url":"https://avatars0.githubusercontent.com/u/9274?v=3","gravatar_id":"","url":"https://api.github.com/users/evanrolfe","html_url":"https://github.com/evanrolfe","followers_url":"https://api.github.com/users/evanrolfe/followers","following_url":"https://api.github.com/users/evanrolfe/following{/other_user}","gists_url":"https://api.github.com/users/evanrolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/evanrolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanrolfe/subscriptions","organizations_url":"https://api.github.com/users/evanrolfe/orgs","repos_url":"https://api.github.com/users/evanrolfe/repos","events_url":"https://api.github.com/users/evanrolfe/events{/privacy}","received_events_url":"https://api.github.com/users/evanrolfe/received_events","type":"User","site_admin":false},"labels":[{"id":21922370,"url":"https://api.github.com/repos/openSUSE/open-build-service/labels/frontend","name":"frontend","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-17T15:52:51Z","updated_at":"2017-03-20T07:10:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/2854","html_url":"https://github.com/openSUSE/open-build-service/pull/2854","diff_url":"https://github.com/openSUSE/open-build-service/pull/2854.diff","patch_url":"https://github.com/openSUSE/open-build-service/pull/2854.patch"},"body":"I'm just making this PR as a \"prototype\" - something to demonstrate thats its possible that we can have the migrations run sequentially in order to generate the entire database.\r\n\r\nAll i have done is replaced the first migration [001_initial_database.rb](https://github.com/opensuse/open-build-service/blob/master/src/api/db/migrate/001_initial_database.rb#L745) with the schema dump for the obs 2.5 database.\r\n\r\nAs you can see there are some differences between structure.sql in master and between what gets generated by running the migrations sequentially. Most of those are just adding `USING BTREE` to the indices however some of the differences are non-trivial and we will need to decide which is the correct way to go for these differences if we wish to merge this PR."},"comment":{"url":"https://api.github.com/repos/openSUSE/open-build-service/issues/comments/287689708","html_url":"https://github.com/openSUSE/open-build-service/pull/2854#issuecomment-287689708","issue_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2854","id":287689708,"user":{"login":"adrianschroeter","id":1067148,"avatar_url":"https://avatars0.githubusercontent.com/u/1067148?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianschroeter","html_url":"https://github.com/adrianschroeter","followers_url":"https://api.github.com/users/adrianschroeter/followers","following_url":"https://api.github.com/users/adrianschroeter/following{/other_user}","gists_url":"https://api.github.com/users/adrianschroeter/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianschroeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianschroeter/subscriptions","organizations_url":"https://api.github.com/users/adrianschroeter/orgs","repos_url":"https://api.github.com/users/adrianschroeter/repos","events_url":"https://api.github.com/users/adrianschroeter/events{/privacy}","received_events_url":"https://api.github.com/users/adrianschroeter/received_events","type":"User","site_admin":false},"created_at":"2017-03-20T07:10:12Z","updated_at":"2017-03-20T07:10:12Z","body":"wouldn't we need the seeds from 2.5 also at least?"}}
{"actor":{"display_login":"adrianschroeter"}}