{"action":"created","issue":{"url":"https://api.github.com/repos/nextras/migrations/issues/29","labels_url":"https://api.github.com/repos/nextras/migrations/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/nextras/migrations/issues/29/comments","events_url":"https://api.github.com/repos/nextras/migrations/issues/29/events","html_url":"https://github.com/nextras/migrations/issues/29","id":114558476,"number":29,"title":"Store checksum of previous migration in each migration","user":{"login":"JanTvrdik","id":175109,"avatar_url":"https://avatars.githubusercontent.com/u/175109?v=3","gravatar_id":"","url":"https://api.github.com/users/JanTvrdik","html_url":"https://github.com/JanTvrdik","followers_url":"https://api.github.com/users/JanTvrdik/followers","following_url":"https://api.github.com/users/JanTvrdik/following{/other_user}","gists_url":"https://api.github.com/users/JanTvrdik/gists{/gist_id}","starred_url":"https://api.github.com/users/JanTvrdik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanTvrdik/subscriptions","organizations_url":"https://api.github.com/users/JanTvrdik/orgs","repos_url":"https://api.github.com/users/JanTvrdik/repos","events_url":"https://api.github.com/users/JanTvrdik/events{/privacy}","received_events_url":"https://api.github.com/users/JanTvrdik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-02T09:34:11Z","updated_at":"2015-11-02T09:42:27Z","closed_at":null,"body":"The `migrations:create` command would instead of empty file create file with first line containing reference to parent migration, e.g. sth like\r\n\r\n~~~sql\r\n# parent = structures/2015-08-28-142150-init.sql/786340a54b68591563e983f60f82fecc\r\n~~~\r\n\r\nThis will allow us to detect when programmer forgot to „rebase migrations“. This would also probably required some tool to help with the rebasing etc."},"comment":{"url":"https://api.github.com/repos/nextras/migrations/issues/comments/152971348","html_url":"https://github.com/nextras/migrations/issues/29#issuecomment-152971348","issue_url":"https://api.github.com/repos/nextras/migrations/issues/29","id":152971348,"user":{"login":"hrach","id":284263,"avatar_url":"https://avatars.githubusercontent.com/u/284263?v=3","gravatar_id":"","url":"https://api.github.com/users/hrach","html_url":"https://github.com/hrach","followers_url":"https://api.github.com/users/hrach/followers","following_url":"https://api.github.com/users/hrach/following{/other_user}","gists_url":"https://api.github.com/users/hrach/gists{/gist_id}","starred_url":"https://api.github.com/users/hrach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrach/subscriptions","organizations_url":"https://api.github.com/users/hrach/orgs","repos_url":"https://api.github.com/users/hrach/repos","events_url":"https://api.github.com/users/hrach/events{/privacy}","received_events_url":"https://api.github.com/users/hrach/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T09:42:27Z","updated_at":"2015-11-02T09:42:27Z","body":"Great! I was thinking about similar solution of storing such thing into separate file... :)"}}