{"action":"closed","issue":{"url":"https://api.github.com/repos/harrygr/Creuset/issues/10","labels_url":"https://api.github.com/repos/harrygr/Creuset/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/harrygr/Creuset/issues/10/comments","events_url":"https://api.github.com/repos/harrygr/Creuset/issues/10/events","html_url":"https://github.com/harrygr/Creuset/issues/10","id":114492685,"number":10,"title":"Migration order on install","user":{"login":"londoh","id":801398,"avatar_url":"https://avatars.githubusercontent.com/u/801398?v=3","gravatar_id":"","url":"https://api.github.com/users/londoh","html_url":"https://github.com/londoh","followers_url":"https://api.github.com/users/londoh/followers","following_url":"https://api.github.com/users/londoh/following{/other_user}","gists_url":"https://api.github.com/users/londoh/gists{/gist_id}","starred_url":"https://api.github.com/users/londoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/londoh/subscriptions","organizations_url":"https://api.github.com/users/londoh/orgs","repos_url":"https://api.github.com/users/londoh/repos","events_url":"https://api.github.com/users/londoh/events{/privacy}","received_events_url":"https://api.github.com/users/londoh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-01T20:59:33Z","updated_at":"2015-11-02T09:12:03Z","closed_at":"2015-11-02T09:12:03Z","body":"a small install issue is that migrations wont run.\r\nBecause of the ordering of the migration files the users table is created before roles and the FK on users -> roles cant be created\r\n\r\n    [Illuminate\\Database\\QueryException]                                                                                                                                                                                              \r\n    SQLSTATE[HY000]: General error: 1005 Can't create table 'creuset.#sql-a63_fada5' (errno: 150) (SQL: alter table `users` add constraint users_role_id_foreign foreign key (`role_id`) references `roles` (`id`) on delete cascade)"}}