{"action":"created","issue":{"url":"https://api.github.com/repos/vapor/vapor/issues/536","repository_url":"https://api.github.com/repos/vapor/vapor","labels_url":"https://api.github.com/repos/vapor/vapor/issues/536/labels{/name}","comments_url":"https://api.github.com/repos/vapor/vapor/issues/536/comments","events_url":"https://api.github.com/repos/vapor/vapor/issues/536/events","html_url":"https://github.com/vapor/vapor/pull/536","id":172342833,"number":536,"title":"vapor run prepare --revert logic change","user":{"login":"kylerokita","id":7111607,"avatar_url":"https://avatars.githubusercontent.com/u/7111607?v=3","gravatar_id":"","url":"https://api.github.com/users/kylerokita","html_url":"https://github.com/kylerokita","followers_url":"https://api.github.com/users/kylerokita/followers","following_url":"https://api.github.com/users/kylerokita/following{/other_user}","gists_url":"https://api.github.com/users/kylerokita/gists{/gist_id}","starred_url":"https://api.github.com/users/kylerokita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylerokita/subscriptions","organizations_url":"https://api.github.com/users/kylerokita/orgs","repos_url":"https://api.github.com/users/kylerokita/repos","events_url":"https://api.github.com/users/kylerokita/events{/privacy}","received_events_url":"https://api.github.com/users/kylerokita/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-21T21:38:11Z","updated_at":"2016-08-25T23:42:49Z","closed_at":"2016-08-25T23:42:49Z","pull_request":{"url":"https://api.github.com/repos/vapor/vapor/pulls/536","html_url":"https://github.com/vapor/vapor/pull/536","diff_url":"https://github.com/vapor/vapor/pull/536.diff","patch_url":"https://github.com/vapor/vapor/pull/536.patch"},"body":"Thanks for the awesome project guys! \r\n\r\nWhile working on a vapor project, I have been making frequent use of the ```vapor run prepare --revert``` option. With --revert, the models run ```revert(database:)``` but not ```prepare(database:)```. This means that the the dev needs to stop and start the server to prepare the database. \r\n\r\nI cannot think of any advantages to not immediately running ```prepare(database:)``` after reverting. It will automatically prepare the next time you start anyways since the migration table was deleted.\r\n\r\nHere is a proposed code change that always runs ```prepare(database:)``` after reverting."},"comment":{"url":"https://api.github.com/repos/vapor/vapor/issues/comments/242580471","html_url":"https://github.com/vapor/vapor/pull/536#issuecomment-242580471","issue_url":"https://api.github.com/repos/vapor/vapor/issues/536","id":242580471,"user":{"login":"tannernelson","id":1342803,"avatar_url":"https://avatars.githubusercontent.com/u/1342803?v=3","gravatar_id":"","url":"https://api.github.com/users/tannernelson","html_url":"https://github.com/tannernelson","followers_url":"https://api.github.com/users/tannernelson/followers","following_url":"https://api.github.com/users/tannernelson/following{/other_user}","gists_url":"https://api.github.com/users/tannernelson/gists{/gist_id}","starred_url":"https://api.github.com/users/tannernelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannernelson/subscriptions","organizations_url":"https://api.github.com/users/tannernelson/orgs","repos_url":"https://api.github.com/users/tannernelson/repos","events_url":"https://api.github.com/users/tannernelson/events{/privacy}","received_events_url":"https://api.github.com/users/tannernelson/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T23:42:48Z","updated_at":"2016-08-25T23:42:48Z","body":"This can be solved by doing `vapor prepare --revert && vapor prepare`"}}
{"actor":{"display_login":"tannernelson"}}