{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9698","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9698/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9698/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9698/events","html_url":"https://github.com/yiisoft/yii2/issues/9698","id":106720108,"number":9698,"title":"Migration (--migrationPath)","user":{"login":"mubushi","id":13354337,"avatar_url":"https://avatars.githubusercontent.com/u/13354337?v=3","gravatar_id":"","url":"https://api.github.com/users/mubushi","html_url":"https://github.com/mubushi","followers_url":"https://api.github.com/users/mubushi/followers","following_url":"https://api.github.com/users/mubushi/following{/other_user}","gists_url":"https://api.github.com/users/mubushi/gists{/gist_id}","starred_url":"https://api.github.com/users/mubushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mubushi/subscriptions","organizations_url":"https://api.github.com/users/mubushi/orgs","repos_url":"https://api.github.com/users/mubushi/repos","events_url":"https://api.github.com/users/mubushi/events{/privacy}","received_events_url":"https://api.github.com/users/mubushi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:under%20discussion","name":"status:under discussion","color":"f7c6c7"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:enhancement","name":"type:enhancement","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-16T08:01:29Z","updated_at":"2015-10-11T13:23:20Z","closed_at":null,"body":"hi all, sorry for any inconvenience\r\nwhen making a migration indicating the migrationPath, for example:\r\n\r\n>$./yii migrate --migrationPath=modules/foo/migrations\r\n\r\nyii does not save the migration path used in migration. So when I run the command down, I have to specify the **migrationPath** for each migration or grup. but when many migrations, this becomes a problem.\r\n\r\nwhen i run the command without the parameter migrationPath in a migration that is not in the default directory y get the exception **failed to open stream: No such file or directory'** obviously \r\n\r\nwith many migrations and modules do this is difficult, I think yii should store the migrationPath used for each migration.\r\n\r\nsomething like change the migration table to :\r\n```\r\nCREATE TABLE migration (\r\n        version varchar(180) PRIMARY KEY,\r\n        path varchar(x),\r\n        apply_time integer,\r\n  )\r\n```\r\n\r\nif there is a way to do it, let me note. thk team :D"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/147192130","html_url":"https://github.com/yiisoft/yii2/issues/9698#issuecomment-147192130","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/9698","id":147192130,"user":{"login":"pana1990","id":6630197,"avatar_url":"https://avatars.githubusercontent.com/u/6630197?v=3","gravatar_id":"","url":"https://api.github.com/users/pana1990","html_url":"https://github.com/pana1990","followers_url":"https://api.github.com/users/pana1990/followers","following_url":"https://api.github.com/users/pana1990/following{/other_user}","gists_url":"https://api.github.com/users/pana1990/gists{/gist_id}","starred_url":"https://api.github.com/users/pana1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pana1990/subscriptions","organizations_url":"https://api.github.com/users/pana1990/orgs","repos_url":"https://api.github.com/users/pana1990/repos","events_url":"https://api.github.com/users/pana1990/events{/privacy}","received_events_url":"https://api.github.com/users/pana1990/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T13:23:20Z","updated_at":"2015-10-11T13:23:20Z","body":"maybe \"db\" should be include too. it is useful when i have two or more dbms.\r\n\r\n@samdark @mubushi @mdmunir  what do you think about it? i can create pull request for this issue."}}