{"action":"created","issue":{"url":"https://api.github.com/repos/jonathanj/clj-codetip/issues/6","labels_url":"https://api.github.com/repos/jonathanj/clj-codetip/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jonathanj/clj-codetip/issues/6/comments","events_url":"https://api.github.com/repos/jonathanj/clj-codetip/issues/6/events","html_url":"https://github.com/jonathanj/clj-codetip/pull/6","id":86115317,"number":6,"title":"Run database migrators at application startup.","user":{"login":"jonathanj","id":112166,"avatar_url":"https://avatars.githubusercontent.com/u/112166?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanj","html_url":"https://github.com/jonathanj","followers_url":"https://api.github.com/users/jonathanj/followers","following_url":"https://api.github.com/users/jonathanj/following{/other_user}","gists_url":"https://api.github.com/users/jonathanj/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanj/subscriptions","organizations_url":"https://api.github.com/users/jonathanj/orgs","repos_url":"https://api.github.com/users/jonathanj/repos","events_url":"https://api.github.com/users/jonathanj/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-08T10:12:22Z","updated_at":"2015-06-09T02:18:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jonathanj/clj-codetip/pulls/6","html_url":"https://github.com/jonathanj/clj-codetip/pull/6","diff_url":"https://github.com/jonathanj/clj-codetip/pull/6.diff","patch_url":"https://github.com/jonathanj/clj-codetip/pull/6.patch"},"body":"Closes #2."},"comment":{"url":"https://api.github.com/repos/jonathanj/clj-codetip/issues/comments/110199213","html_url":"https://github.com/jonathanj/clj-codetip/pull/6#issuecomment-110199213","issue_url":"https://api.github.com/repos/jonathanj/clj-codetip/issues/6","id":110199213,"user":{"login":"mithrandi","id":856430,"avatar_url":"https://avatars.githubusercontent.com/u/856430?v=3","gravatar_id":"","url":"https://api.github.com/users/mithrandi","html_url":"https://github.com/mithrandi","followers_url":"https://api.github.com/users/mithrandi/followers","following_url":"https://api.github.com/users/mithrandi/following{/other_user}","gists_url":"https://api.github.com/users/mithrandi/gists{/gist_id}","starred_url":"https://api.github.com/users/mithrandi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mithrandi/subscriptions","organizations_url":"https://api.github.com/users/mithrandi/orgs","repos_url":"https://api.github.com/users/mithrandi/repos","events_url":"https://api.github.com/users/mithrandi/events{/privacy}","received_events_url":"https://api.github.com/users/mithrandi/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T02:18:25Z","updated_at":"2015-06-09T02:18:25Z","body":"I can't actually get this to work running the uberjar with an empty / missing initial database:\r\n```\r\nWarning, no migrators found!\r\nMigrating #ragtime.sql.database.SqlDatabase{:connection-uri jdbc:sqlite:/srv/codetip/db/codetip.db, :db {:type :jdbc, :url jdbc:sqlite:/srv/codetip/db/codetip.db}, :migrator migrators/sql}\r\nException in thread \"main\" java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such table: pastes)\r\n```\r\nThe error is presumably due to not finding the migrators, but I'm not sure why they're not found. They're definitely included in the uberjar:\r\n```\r\nmithrandi@lorien ~/c/clj-codetip> als target/clj-codetip-0.1.0-standalone.jar | grep migrators\r\n        0  2015-06-09 02:13   migrators/\r\n        0  2015-06-09 02:13   migrators/sql/\r\n      479  2015-06-09 02:13   migrators/sql/20141202132511_initialise_paste_table.clj\r\n```"}}