{"action":"created","issue":{"url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1711","labels_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1711/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1711/comments","events_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1711/events","html_url":"https://github.com/puppetlabs/puppetdb/pull/1711","id":113828945,"number":1711,"title":"(PDB-2078) Rethink migrate.clj","user":{"login":"senior","id":215910,"avatar_url":"https://avatars.githubusercontent.com/u/215910?v=3","gravatar_id":"","url":"https://api.github.com/users/senior","html_url":"https://github.com/senior","followers_url":"https://api.github.com/users/senior/followers","following_url":"https://api.github.com/users/senior/following{/other_user}","gists_url":"https://api.github.com/users/senior/gists{/gist_id}","starred_url":"https://api.github.com/users/senior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senior/subscriptions","organizations_url":"https://api.github.com/users/senior/orgs","repos_url":"https://api.github.com/users/senior/repos","events_url":"https://api.github.com/users/senior/events{/privacy}","received_events_url":"https://api.github.com/users/senior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/puppetlabs/puppetdb/milestones/11","html_url":"https://github.com/puppetlabs/puppetdb/milestones/4.0.0%20(master)","labels_url":"https://api.github.com/repos/puppetlabs/puppetdb/milestones/11/labels","id":1341713,"number":11,"title":"4.0.0 (master)","description":"","creator":{"login":"kbarber","id":80595,"avatar_url":"https://avatars.githubusercontent.com/u/80595?v=3","gravatar_id":"","url":"https://api.github.com/users/kbarber","html_url":"https://github.com/kbarber","followers_url":"https://api.github.com/users/kbarber/followers","following_url":"https://api.github.com/users/kbarber/following{/other_user}","gists_url":"https://api.github.com/users/kbarber/gists{/gist_id}","starred_url":"https://api.github.com/users/kbarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbarber/subscriptions","organizations_url":"https://api.github.com/users/kbarber/orgs","repos_url":"https://api.github.com/users/kbarber/repos","events_url":"https://api.github.com/users/kbarber/events{/privacy}","received_events_url":"https://api.github.com/users/kbarber/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":24,"state":"open","created_at":"2015-10-07T01:07:44Z","updated_at":"2015-10-29T10:58:37Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-10-28T14:08:26Z","updated_at":"2015-10-29T14:56:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/1711","html_url":"https://github.com/puppetlabs/puppetdb/pull/1711","diff_url":"https://github.com/puppetlabs/puppetdb/pull/1711.diff","patch_url":"https://github.com/puppetlabs/puppetdb/pull/1711.patch"},"body":"There are three commits in this PR. The first puts in place some test code that allows some basic comparison of the database schema. \r\n\r\nThe second commit adds a new \"rolled up\" migration that includes migrations 1-28 (all existed prior to 3.0.0). This was obtained by running the first 28 migrations, using `pg_dump` to get the schema, then putting that in the migrate.clj (after cleaning it up a bit). There is also a test in that commit that ensures the new rolled up migration is identical (schema-wise) to the old set of migrations.\r\n\r\nThe final commit removes the old migrations (and the rolled up test) along with the associated migrate legacy code."},"comment":{"url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/comments/152205592","html_url":"https://github.com/puppetlabs/puppetdb/pull/1711#issuecomment-152205592","issue_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1711","id":152205592,"user":{"login":"kbarber","id":80595,"avatar_url":"https://avatars.githubusercontent.com/u/80595?v=3","gravatar_id":"","url":"https://api.github.com/users/kbarber","html_url":"https://github.com/kbarber","followers_url":"https://api.github.com/users/kbarber/followers","following_url":"https://api.github.com/users/kbarber/following{/other_user}","gists_url":"https://api.github.com/users/kbarber/gists{/gist_id}","starred_url":"https://api.github.com/users/kbarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbarber/subscriptions","organizations_url":"https://api.github.com/users/kbarber/orgs","repos_url":"https://api.github.com/users/kbarber/repos","events_url":"https://api.github.com/users/kbarber/events{/privacy}","received_events_url":"https://api.github.com/users/kbarber/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T14:56:44Z","updated_at":"2015-10-29T14:56:44Z","body":"Here is my naive diff, with & without this patch: https://gist.github.com/kbarber/2bff01c3888294b364c5"}}