{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8206","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8206/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8206/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8206/events","html_url":"https://github.com/yiisoft/yii2/issues/8206","id":71262641,"number":8206,"title":"Adding `use Yii;` in the beginning of migration kills console","user":{"login":"trejder","id":2903392,"avatar_url":"https://avatars.githubusercontent.com/u/2903392?v=3","gravatar_id":"","url":"https://api.github.com/users/trejder","html_url":"https://github.com/trejder","followers_url":"https://api.github.com/users/trejder/followers","following_url":"https://api.github.com/users/trejder/following{/other_user}","gists_url":"https://api.github.com/users/trejder/gists{/gist_id}","starred_url":"https://api.github.com/users/trejder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trejder/subscriptions","organizations_url":"https://api.github.com/users/trejder/orgs","repos_url":"https://api.github.com/users/trejder/repos","events_url":"https://api.github.com/users/trejder/events{/privacy}","received_events_url":"https://api.github.com/users/trejder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-27T12:00:34Z","updated_at":"2015-04-27T12:00:34Z","closed_at":null,"body":"To my extreme surprise, adding `use Yii;` in the beginning of migration file kills command-line (Git for Windows) very badly.\r\n\r\nI think you may consider working-around this somehow.\r\n\r\nI know, that `Yii` is available in migration and one does not / must not add `use Yii;` in the beginning of migration file. But, I'm pretty sure, you'd like to handle this situation a bit more gently, instead of firing user command-line console into one-way Mars mission, right? :>"}}