{"action":"created","issue":{"url":"https://api.github.com/repos/techfort/LokiJS/issues/255","labels_url":"https://api.github.com/repos/techfort/LokiJS/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/techfort/LokiJS/issues/255/comments","events_url":"https://api.github.com/repos/techfort/LokiJS/issues/255/events","html_url":"https://github.com/techfort/LokiJS/issues/255","id":112357730,"number":255,"title":"question: changing index on database upgrades","user":{"login":"retorquere","id":132108,"avatar_url":"https://avatars.githubusercontent.com/u/132108?v=3","gravatar_id":"","url":"https://api.github.com/users/retorquere","html_url":"https://github.com/retorquere","followers_url":"https://api.github.com/users/retorquere/followers","following_url":"https://api.github.com/users/retorquere/following{/other_user}","gists_url":"https://api.github.com/users/retorquere/gists{/gist_id}","starred_url":"https://api.github.com/users/retorquere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retorquere/subscriptions","organizations_url":"https://api.github.com/users/retorquere/orgs","repos_url":"https://api.github.com/users/retorquere/repos","events_url":"https://api.github.com/users/retorquere/events{/privacy}","received_events_url":"https://api.github.com/users/retorquere/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-20T12:31:42Z","updated_at":"2015-10-24T18:04:05Z","closed_at":null,"body":"I currently serialise my DB to disk, and I see that this includes the indexes on the collections contained in it. If at some point I need to update what I want indexed on a collection, how can I do this while retaining the data? The only place I see I can specify my index is in addCollection, but after DB load, the collections + indexes are already there."},"comment":{"url":"https://api.github.com/repos/techfort/LokiJS/issues/comments/150838372","html_url":"https://github.com/techfort/LokiJS/issues/255#issuecomment-150838372","issue_url":"https://api.github.com/repos/techfort/LokiJS/issues/255","id":150838372,"user":{"login":"retorquere","id":132108,"avatar_url":"https://avatars.githubusercontent.com/u/132108?v=3","gravatar_id":"","url":"https://api.github.com/users/retorquere","html_url":"https://github.com/retorquere","followers_url":"https://api.github.com/users/retorquere/followers","following_url":"https://api.github.com/users/retorquere/following{/other_user}","gists_url":"https://api.github.com/users/retorquere/gists{/gist_id}","starred_url":"https://api.github.com/users/retorquere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retorquere/subscriptions","organizations_url":"https://api.github.com/users/retorquere/orgs","repos_url":"https://api.github.com/users/retorquere/repos","events_url":"https://api.github.com/users/retorquere/events{/privacy}","received_events_url":"https://api.github.com/users/retorquere/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T18:04:05Z","updated_at":"2015-10-24T18:04:05Z","body":"Super! But then simply\r\n\r\n```\r\ndelete collection.binaryIndices.getCollections;\r\n```\r\n\r\nshould also work"}}