{"action":"created","issue":{"url":"https://api.github.com/repos/mattes/migrate/issues/237","repository_url":"https://api.github.com/repos/mattes/migrate","labels_url":"https://api.github.com/repos/mattes/migrate/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/mattes/migrate/issues/237/comments","events_url":"https://api.github.com/repos/mattes/migrate/issues/237/events","html_url":"https://github.com/mattes/migrate/issues/237","id":230100747,"number":237,"title":"Store all migrations that have been applied; run all that are missing","user":{"login":"abscondment","id":36872,"avatar_url":"https://avatars3.githubusercontent.com/u/36872?v=4","gravatar_id":"","url":"https://api.github.com/users/abscondment","html_url":"https://github.com/abscondment","followers_url":"https://api.github.com/users/abscondment/followers","following_url":"https://api.github.com/users/abscondment/following{/other_user}","gists_url":"https://api.github.com/users/abscondment/gists{/gist_id}","starred_url":"https://api.github.com/users/abscondment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abscondment/subscriptions","organizations_url":"https://api.github.com/users/abscondment/orgs","repos_url":"https://api.github.com/users/abscondment/repos","events_url":"https://api.github.com/users/abscondment/events{/privacy}","received_events_url":"https://api.github.com/users/abscondment/received_events","type":"User","site_admin":false},"labels":[{"id":120594136,"url":"https://api.github.com/repos/mattes/migrate/labels/question","name":"question","color":"fef2c0","default":true},{"id":539910316,"url":"https://api.github.com/repos/mattes/migrate/labels/v/3","name":"v/3","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-05-19T22:03:41Z","updated_at":"2017-12-13T16:16:13Z","closed_at":null,"author_association":"NONE","body":"Right now you're using a \"high-water mark\" approach to check whether a migration ought to be applied. If it's less or equal to than the version in the database, it is ignored.\r\n\r\nWould you consider a change that stores a row per migration applied?\r\n\r\nThis would handle certain out-of-order situations that are problematic under the current scheme (example: you create a migration in a feature branch; a day later, you create and deploy migration as part of a hotfix; when the feature branch is merged, the \"new\" migration has a lower timestamp and is skipped).\r\n\r\nFWIW, this is the path that Rails took for ActiveRecord migrations. It started with the single-row approach and moved over to \"store everything I've run\" in 2008."},"comment":{"url":"https://api.github.com/repos/mattes/migrate/issues/comments/351440454","html_url":"https://github.com/mattes/migrate/issues/237#issuecomment-351440454","issue_url":"https://api.github.com/repos/mattes/migrate/issues/237","id":351440454,"user":{"login":"josephbuchma","id":3718145,"avatar_url":"https://avatars3.githubusercontent.com/u/3718145?v=4","gravatar_id":"","url":"https://api.github.com/users/josephbuchma","html_url":"https://github.com/josephbuchma","followers_url":"https://api.github.com/users/josephbuchma/followers","following_url":"https://api.github.com/users/josephbuchma/following{/other_user}","gists_url":"https://api.github.com/users/josephbuchma/gists{/gist_id}","starred_url":"https://api.github.com/users/josephbuchma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephbuchma/subscriptions","organizations_url":"https://api.github.com/users/josephbuchma/orgs","repos_url":"https://api.github.com/users/josephbuchma/repos","events_url":"https://api.github.com/users/josephbuchma/events{/privacy}","received_events_url":"https://api.github.com/users/josephbuchma/received_events","type":"User","site_admin":false},"created_at":"2017-12-13T16:16:13Z","updated_at":"2017-12-13T16:16:13Z","author_association":"NONE","body":"+1 for this feature.\r\nbtw, https://github.com/db-journey/ looks very promising"}}
{"actor":{"display_login":"josephbuchma"}}