{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/2418","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/2418/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/2418/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/2418/events","html_url":"https://github.com/realm/realm-java/issues/2418","id":140065200,"number":2418,"title":"Does Realm support manually migration after MigrationException throwed","user":{"login":"avenwu","id":1622234,"avatar_url":"https://avatars.githubusercontent.com/u/1622234?v=3","gravatar_id":"","url":"https://api.github.com/users/avenwu","html_url":"https://github.com/avenwu","followers_url":"https://api.github.com/users/avenwu/followers","following_url":"https://api.github.com/users/avenwu/following{/other_user}","gists_url":"https://api.github.com/users/avenwu/gists{/gist_id}","starred_url":"https://api.github.com/users/avenwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avenwu/subscriptions","organizations_url":"https://api.github.com/users/avenwu/orgs","repos_url":"https://api.github.com/users/avenwu/repos","events_url":"https://api.github.com/users/avenwu/events{/privacy}","received_events_url":"https://api.github.com/users/avenwu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/T:Help","name":"T:Help","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-11T02:10:25Z","updated_at":"2016-03-16T08:02:28Z","closed_at":"2016-03-16T08:01:39Z","body":"#### Goal\r\n\r\n> What do you want to achieve?\r\nI would like to deal with MigrationException manually,not just delete the old default.realm db \r\n\r\n#### Expected Results\r\n\r\n```\r\ntry{\r\n    Realm.getInstance()\r\n} catch(MigrationException e) {\r\n    //step 1. read realm file manually\r\n    //step 2. extract necessary information in the existing old db\r\n    //step 3. delete the old db file\r\n    //step 4. create new db and set the information we've got from step 2;\r\n}\r\n```\r\n#### Actual Results\r\nCurrently I can only delete the realm file when MigrationException throwed which means any user sensitive information in the dirty db will be lost;"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/197202471","html_url":"https://github.com/realm/realm-java/issues/2418#issuecomment-197202471","issue_url":"https://api.github.com/repos/realm/realm-java/issues/2418","id":197202471,"user":{"login":"avenwu","id":1622234,"avatar_url":"https://avatars.githubusercontent.com/u/1622234?v=3","gravatar_id":"","url":"https://api.github.com/users/avenwu","html_url":"https://github.com/avenwu","followers_url":"https://api.github.com/users/avenwu/followers","following_url":"https://api.github.com/users/avenwu/following{/other_user}","gists_url":"https://api.github.com/users/avenwu/gists{/gist_id}","starred_url":"https://api.github.com/users/avenwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avenwu/subscriptions","organizations_url":"https://api.github.com/users/avenwu/orgs","repos_url":"https://api.github.com/users/avenwu/repos","events_url":"https://api.github.com/users/avenwu/events{/privacy}","received_events_url":"https://api.github.com/users/avenwu/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T08:02:28Z","updated_at":"2016-03-16T08:02:28Z","body":"Closed, thanks for your help"}}