{"action":"created","issue":{"url":"https://api.github.com/repos/iandunn/wp-cli-rename-db-prefix/issues/5","repository_url":"https://api.github.com/repos/iandunn/wp-cli-rename-db-prefix","labels_url":"https://api.github.com/repos/iandunn/wp-cli-rename-db-prefix/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/iandunn/wp-cli-rename-db-prefix/issues/5/comments","events_url":"https://api.github.com/repos/iandunn/wp-cli-rename-db-prefix/issues/5/events","html_url":"https://github.com/iandunn/wp-cli-rename-db-prefix/pull/5","id":196135096,"number":5,"title":"Add flag to run in dry mode","user":{"login":"ocean90","id":617637,"avatar_url":"https://avatars.githubusercontent.com/u/617637?v=3","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-16T19:21:58Z","updated_at":"2016-12-18T22:12:57Z","closed_at":"2016-12-16T21:47:08Z","pull_request":{"url":"https://api.github.com/repos/iandunn/wp-cli-rename-db-prefix/pulls/5","html_url":"https://github.com/iandunn/wp-cli-rename-db-prefix/pull/5","diff_url":"https://github.com/iandunn/wp-cli-rename-db-prefix/pull/5.diff","patch_url":"https://github.com/iandunn/wp-cli-rename-db-prefix/pull/5.patch"},"body":"I was curious what queries the command would run so I thought a `--dry-run` argument would be a nice addition. Instead of executing the queries it would just print them to STDOUT.\r\n\r\n```\r\n$ wp rename-db-prefix test_ --dry-run\r\n\r\nWarning: Use this at your own risk. If something goes wrong, it could break your site. Before running this, make sure to back up your `wp-config.php` file and run `wp db export`.\r\nRunning in dry run mode.\r\n\r\nRENAME TABLE `wp_commentmeta` TO `test_commentmeta`;\r\nRENAME TABLE `wp_comments` TO `test_comments`;\r\nRENAME TABLE `wp_links` TO `test_links`;\r\n....\r\n```\r\n\r\nLet me know what you think about this idea."},"comment":{"url":"https://api.github.com/repos/iandunn/wp-cli-rename-db-prefix/issues/comments/267850776","html_url":"https://github.com/iandunn/wp-cli-rename-db-prefix/pull/5#issuecomment-267850776","issue_url":"https://api.github.com/repos/iandunn/wp-cli-rename-db-prefix/issues/5","id":267850776,"user":{"login":"iandunn","id":484068,"avatar_url":"https://avatars.githubusercontent.com/u/484068?v=3","gravatar_id":"","url":"https://api.github.com/users/iandunn","html_url":"https://github.com/iandunn","followers_url":"https://api.github.com/users/iandunn/followers","following_url":"https://api.github.com/users/iandunn/following{/other_user}","gists_url":"https://api.github.com/users/iandunn/gists{/gist_id}","starred_url":"https://api.github.com/users/iandunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandunn/subscriptions","organizations_url":"https://api.github.com/users/iandunn/orgs","repos_url":"https://api.github.com/users/iandunn/repos","events_url":"https://api.github.com/users/iandunn/events{/privacy}","received_events_url":"https://api.github.com/users/iandunn/received_events","type":"User","site_admin":false},"created_at":"2016-12-18T22:12:57Z","updated_at":"2016-12-18T22:12:57Z","body":"No worries, feel free to push whatever commits you think are appropriate. I trust your judgement :)"}}
{"actor":{"display_login":"iandunn"}}