{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/migrations/issues/112","labels_url":"https://api.github.com/repos/cakephp/migrations/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/migrations/issues/112/comments","events_url":"https://api.github.com/repos/cakephp/migrations/issues/112/events","html_url":"https://github.com/cakephp/migrations/pull/112","id":99905232,"number":112,"title":"The check for different migrations paths should only be done if a migrations path was already defined","user":{"login":"HavokInspiration","id":5243386,"avatar_url":"https://avatars.githubusercontent.com/u/5243386?v=3","gravatar_id":"","url":"https://api.github.com/users/HavokInspiration","html_url":"https://github.com/HavokInspiration","followers_url":"https://api.github.com/users/HavokInspiration/followers","following_url":"https://api.github.com/users/HavokInspiration/following{/other_user}","gists_url":"https://api.github.com/users/HavokInspiration/gists{/gist_id}","starred_url":"https://api.github.com/users/HavokInspiration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HavokInspiration/subscriptions","organizations_url":"https://api.github.com/users/HavokInspiration/orgs","repos_url":"https://api.github.com/users/HavokInspiration/repos","events_url":"https://api.github.com/users/HavokInspiration/events{/privacy}","received_events_url":"https://api.github.com/users/HavokInspiration/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/migrations/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/migrations/milestones/9","html_url":"https://github.com/cakephp/migrations/milestones/1.2.1","labels_url":"https://api.github.com/repos/cakephp/migrations/milestones/9/labels","id":1236695,"number":9,"title":"1.2.1","description":"","creator":{"login":"HavokInspiration","id":5243386,"avatar_url":"https://avatars.githubusercontent.com/u/5243386?v=3","gravatar_id":"","url":"https://api.github.com/users/HavokInspiration","html_url":"https://github.com/HavokInspiration","followers_url":"https://api.github.com/users/HavokInspiration/followers","following_url":"https://api.github.com/users/HavokInspiration/following{/other_user}","gists_url":"https://api.github.com/users/HavokInspiration/gists{/gist_id}","starred_url":"https://api.github.com/users/HavokInspiration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HavokInspiration/subscriptions","organizations_url":"https://api.github.com/users/HavokInspiration/orgs","repos_url":"https://api.github.com/users/HavokInspiration/repos","events_url":"https://api.github.com/users/HavokInspiration/events{/privacy}","received_events_url":"https://api.github.com/users/HavokInspiration/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":5,"state":"open","created_at":"2015-08-02T10:10:05Z","updated_at":"2015-08-09T15:21:10Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-09T15:20:51Z","updated_at":"2015-08-09T18:29:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cakephp/migrations/pulls/112","html_url":"https://github.com/cakephp/migrations/pull/112","diff_url":"https://github.com/cakephp/migrations/pull/112.diff","patch_url":"https://github.com/cakephp/migrations/pull/112.patch"},"body":"The Manager object Phinx used stores the migrations whenever some are found through a command.\r\nThe Migrations class erases them from the Manager object when a method is used to prevent wrong migrations to be returned.\r\nThis is done only if the migrations path between two calls are different.\r\n\r\nThis bug went unseen because in the tests, a dummy input is generated and passed to a Migrations object in order to get the PDO instance and share it with other objects (needed because of SQLite and the memory connection). The migrations were then ran against this Migrations object that already had a migrations path defined (because its manager was instanciated already with the dummy input), causing the method to raise an exception.\r\nThe tests now run migrations with a new object to make sure the bug does not happen.\r\n\r\nRefs #111 "},"comment":{"url":"https://api.github.com/repos/cakephp/migrations/issues/comments/129223768","html_url":"https://github.com/cakephp/migrations/pull/112#issuecomment-129223768","issue_url":"https://api.github.com/repos/cakephp/migrations/issues/112","id":129223768,"user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"created_at":"2015-08-09T18:29:45Z","updated_at":"2015-08-09T18:29:45Z","body":"Looks good to me."}}