{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/laravel-doctrine/migrations/pulls/8","id":48000325,"html_url":"https://github.com/laravel-doctrine/migrations/pull/8","diff_url":"https://github.com/laravel-doctrine/migrations/pull/8.diff","patch_url":"https://github.com/laravel-doctrine/migrations/pull/8.patch","issue_url":"https://api.github.com/repos/laravel-doctrine/migrations/issues/8","number":8,"state":"open","locked":false,"title":"Fix for migration rollback command","user":{"login":"gnkz","id":6633835,"avatar_url":"https://avatars.githubusercontent.com/u/6633835?v=3","gravatar_id":"","url":"https://api.github.com/users/gnkz","html_url":"https://github.com/gnkz","followers_url":"https://api.github.com/users/gnkz/followers","following_url":"https://api.github.com/users/gnkz/following{/other_user}","gists_url":"https://api.github.com/users/gnkz/gists{/gist_id}","starred_url":"https://api.github.com/users/gnkz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnkz/subscriptions","organizations_url":"https://api.github.com/users/gnkz/orgs","repos_url":"https://api.github.com/users/gnkz/repos","events_url":"https://api.github.com/users/gnkz/events{/privacy}","received_events_url":"https://api.github.com/users/gnkz/received_events","type":"User","site_admin":false},"body":"## The problem\r\n\r\nThe `php artisan doctrine:migrations:rollback` doesn't work. When executed without arguments it throws `InvalidArgumentException: The \"version\" argument does not exist.`. When executed with an argument it throws `[RuntimeException]: Too many arguments.`\r\n\r\n## The fix\r\n\r\nUpdated the $signature property of `LaravelDoctrine\\Migrations\\Console\\RollbackCommand` from:\r\n\r\n```php\r\nprotected $signature = 'doctrine:migrations:rollback [version=]\r\n    {--connection= : For a specific connection.}';\r\n```\r\n\r\nTo:\r\n\r\n```php\r\nprotected $signature = 'doctrine:migrations:rollback\r\n    {--migration-version= : For a specific migration version.}\r\n    {--connection= : For a specific connection.}';\r\n```\r\n\r\nAlso updated the line 36 from:\r\n\r\n```php\r\n$version = $this->argument('version') ?: $configuration->getCurrentVersion();\r\n```\r\n\r\nto:\r\n\r\n```php\r\n$version = $this->option('migration-version') ?: $configuration->getCurrentVersion();\r\n```\r\n\r\nWith these changes the command accepts no argument and the rollback is executed to the latest version. When the `--migration-version` option is passed, the rollback is executed to that specific migration version.","created_at":"2015-10-18T02:44:14Z","updated_at":"2015-10-18T02:44:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel-doctrine/migrations/pulls/8/commits","review_comments_url":"https://api.github.com/repos/laravel-doctrine/migrations/pulls/8/comments","review_comment_url":"https://api.github.com/repos/laravel-doctrine/migrations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel-doctrine/migrations/issues/8/comments","statuses_url":"https://api.github.com/repos/laravel-doctrine/migrations/statuses/bd35462ed7fd09be02304f0d89dd5ab25c5a512f","head":{"label":"gnkz:master","ref":"master","sha":"bd35462ed7fd09be02304f0d89dd5ab25c5a512f","user":{"login":"gnkz","id":6633835,"avatar_url":"https://avatars.githubusercontent.com/u/6633835?v=3","gravatar_id":"","url":"https://api.github.com/users/gnkz","html_url":"https://github.com/gnkz","followers_url":"https://api.github.com/users/gnkz/followers","following_url":"https://api.github.com/users/gnkz/following{/other_user}","gists_url":"https://api.github.com/users/gnkz/gists{/gist_id}","starred_url":"https://api.github.com/users/gnkz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnkz/subscriptions","organizations_url":"https://api.github.com/users/gnkz/orgs","repos_url":"https://api.github.com/users/gnkz/repos","events_url":"https://api.github.com/users/gnkz/events{/privacy}","received_events_url":"https://api.github.com/users/gnkz/received_events","type":"User","site_admin":false},"repo":{"id":44462371,"name":"migrations","full_name":"gnkz/migrations","owner":{"login":"gnkz","id":6633835,"avatar_url":"https://avatars.githubusercontent.com/u/6633835?v=3","gravatar_id":"","url":"https://api.github.com/users/gnkz","html_url":"https://github.com/gnkz","followers_url":"https://api.github.com/users/gnkz/followers","following_url":"https://api.github.com/users/gnkz/following{/other_user}","gists_url":"https://api.github.com/users/gnkz/gists{/gist_id}","starred_url":"https://api.github.com/users/gnkz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnkz/subscriptions","organizations_url":"https://api.github.com/users/gnkz/orgs","repos_url":"https://api.github.com/users/gnkz/repos","events_url":"https://api.github.com/users/gnkz/events{/privacy}","received_events_url":"https://api.github.com/users/gnkz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gnkz/migrations","description":"Integration with Doctrine2's migrations package for Laravel 5","fork":true,"url":"https://api.github.com/repos/gnkz/migrations","forks_url":"https://api.github.com/repos/gnkz/migrations/forks","keys_url":"https://api.github.com/repos/gnkz/migrations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gnkz/migrations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gnkz/migrations/teams","hooks_url":"https://api.github.com/repos/gnkz/migrations/hooks","issue_events_url":"https://api.github.com/repos/gnkz/migrations/issues/events{/number}","events_url":"https://api.github.com/repos/gnkz/migrations/events","assignees_url":"https://api.github.com/repos/gnkz/migrations/assignees{/user}","branches_url":"https://api.github.com/repos/gnkz/migrations/branches{/branch}","tags_url":"https://api.github.com/repos/gnkz/migrations/tags","blobs_url":"https://api.github.com/repos/gnkz/migrations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gnkz/migrations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gnkz/migrations/git/refs{/sha}","trees_url":"https://api.github.com/repos/gnkz/migrations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gnkz/migrations/statuses/{sha}","languages_url":"https://api.github.com/repos/gnkz/migrations/languages","stargazers_url":"https://api.github.com/repos/gnkz/migrations/stargazers","contributors_url":"https://api.github.com/repos/gnkz/migrations/contributors","subscribers_url":"https://api.github.com/repos/gnkz/migrations/subscribers","subscription_url":"https://api.github.com/repos/gnkz/migrations/subscription","commits_url":"https://api.github.com/repos/gnkz/migrations/commits{/sha}","git_commits_url":"https://api.github.com/repos/gnkz/migrations/git/commits{/sha}","comments_url":"https://api.github.com/repos/gnkz/migrations/comments{/number}","issue_comment_url":"https://api.github.com/repos/gnkz/migrations/issues/comments{/number}","contents_url":"https://api.github.com/repos/gnkz/migrations/contents/{+path}","compare_url":"https://api.github.com/repos/gnkz/migrations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gnkz/migrations/merges","archive_url":"https://api.github.com/repos/gnkz/migrations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gnkz/migrations/downloads","issues_url":"https://api.github.com/repos/gnkz/migrations/issues{/number}","pulls_url":"https://api.github.com/repos/gnkz/migrations/pulls{/number}","milestones_url":"https://api.github.com/repos/gnkz/migrations/milestones{/number}","notifications_url":"https://api.github.com/repos/gnkz/migrations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gnkz/migrations/labels{/name}","releases_url":"https://api.github.com/repos/gnkz/migrations/releases{/id}","created_at":"2015-10-18T02:14:26Z","updated_at":"2015-10-18T02:14:27Z","pushed_at":"2015-10-18T02:29:36Z","git_url":"git://github.com/gnkz/migrations.git","ssh_url":"git@github.com:gnkz/migrations.git","clone_url":"https://github.com/gnkz/migrations.git","svn_url":"https://github.com/gnkz/migrations","homepage":null,"size":118,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"1.0"}},"base":{"label":"laravel-doctrine:master","ref":"master","sha":"e9d978decb551e6a2165d482915c188aae3517d8","user":{"login":"laravel-doctrine","id":13315966,"avatar_url":"https://avatars.githubusercontent.com/u/13315966?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel-doctrine","html_url":"https://github.com/laravel-doctrine","followers_url":"https://api.github.com/users/laravel-doctrine/followers","following_url":"https://api.github.com/users/laravel-doctrine/following{/other_user}","gists_url":"https://api.github.com/users/laravel-doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel-doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel-doctrine/subscriptions","organizations_url":"https://api.github.com/users/laravel-doctrine/orgs","repos_url":"https://api.github.com/users/laravel-doctrine/repos","events_url":"https://api.github.com/users/laravel-doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/laravel-doctrine/received_events","type":"Organization","site_admin":false},"repo":{"id":39036028,"name":"migrations","full_name":"laravel-doctrine/migrations","owner":{"login":"laravel-doctrine","id":13315966,"avatar_url":"https://avatars.githubusercontent.com/u/13315966?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel-doctrine","html_url":"https://github.com/laravel-doctrine","followers_url":"https://api.github.com/users/laravel-doctrine/followers","following_url":"https://api.github.com/users/laravel-doctrine/following{/other_user}","gists_url":"https://api.github.com/users/laravel-doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel-doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel-doctrine/subscriptions","organizations_url":"https://api.github.com/users/laravel-doctrine/orgs","repos_url":"https://api.github.com/users/laravel-doctrine/repos","events_url":"https://api.github.com/users/laravel-doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/laravel-doctrine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel-doctrine/migrations","description":"Integration with Doctrine2's migrations package for Laravel 5","fork":false,"url":"https://api.github.com/repos/laravel-doctrine/migrations","forks_url":"https://api.github.com/repos/laravel-doctrine/migrations/forks","keys_url":"https://api.github.com/repos/laravel-doctrine/migrations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel-doctrine/migrations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel-doctrine/migrations/teams","hooks_url":"https://api.github.com/repos/laravel-doctrine/migrations/hooks","issue_events_url":"https://api.github.com/repos/laravel-doctrine/migrations/issues/events{/number}","events_url":"https://api.github.com/repos/laravel-doctrine/migrations/events","assignees_url":"https://api.github.com/repos/laravel-doctrine/migrations/assignees{/user}","branches_url":"https://api.github.com/repos/laravel-doctrine/migrations/branches{/branch}","tags_url":"https://api.github.com/repos/laravel-doctrine/migrations/tags","blobs_url":"https://api.github.com/repos/laravel-doctrine/migrations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel-doctrine/migrations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel-doctrine/migrations/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel-doctrine/migrations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel-doctrine/migrations/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel-doctrine/migrations/languages","stargazers_url":"https://api.github.com/repos/laravel-doctrine/migrations/stargazers","contributors_url":"https://api.github.com/repos/laravel-doctrine/migrations/contributors","subscribers_url":"https://api.github.com/repos/laravel-doctrine/migrations/subscribers","subscription_url":"https://api.github.com/repos/laravel-doctrine/migrations/subscription","commits_url":"https://api.github.com/repos/laravel-doctrine/migrations/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel-doctrine/migrations/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel-doctrine/migrations/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel-doctrine/migrations/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel-doctrine/migrations/contents/{+path}","compare_url":"https://api.github.com/repos/laravel-doctrine/migrations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel-doctrine/migrations/merges","archive_url":"https://api.github.com/repos/laravel-doctrine/migrations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel-doctrine/migrations/downloads","issues_url":"https://api.github.com/repos/laravel-doctrine/migrations/issues{/number}","pulls_url":"https://api.github.com/repos/laravel-doctrine/migrations/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel-doctrine/migrations/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel-doctrine/migrations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel-doctrine/migrations/labels{/name}","releases_url":"https://api.github.com/repos/laravel-doctrine/migrations/releases{/id}","created_at":"2015-07-13T20:38:30Z","updated_at":"2015-09-30T12:40:58Z","pushed_at":"2015-10-08T03:13:42Z","git_url":"git://github.com/laravel-doctrine/migrations.git","ssh_url":"git@github.com:laravel-doctrine/migrations.git","clone_url":"https://github.com/laravel-doctrine/migrations.git","svn_url":"https://github.com/laravel-doctrine/migrations","homepage":null,"size":250,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":5,"default_branch":"1.0"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel-doctrine/migrations/pulls/8"},"html":{"href":"https://github.com/laravel-doctrine/migrations/pull/8"},"issue":{"href":"https://api.github.com/repos/laravel-doctrine/migrations/issues/8"},"comments":{"href":"https://api.github.com/repos/laravel-doctrine/migrations/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel-doctrine/migrations/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel-doctrine/migrations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel-doctrine/migrations/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/laravel-doctrine/migrations/statuses/bd35462ed7fd09be02304f0d89dd5ab25c5a512f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":3,"changed_files":1}}