-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local repo format migrations #537
Labels
topic/repo
Topic repo
Milestone
Comments
I wrote down some generalized thoughts on repos + migrations here: jbenet/random-ideas#33 -- i'd like to see go-ipfs have something like this:
|
i dont care about migrations until we alpha |
3 tasks
From now on we need to do migrations when changing the repo layout. |
we do migrations now, it works: https://github.com/ipfs/fs-repo-migrations |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
though this should rarely happen, sometimes we'll need to change formats of the repository files; this includes config key changes, and data inside leveldb. we should never break people's objects, so that means we need to handle these upgrades with great care.
We probably should use something like a repo-version with migrations. one possible way to do this is: we have a single repo version, every time we make format change we increment the repo version, and add a tool
repo_migrate_<old>2<new>
that performs the update. We should then be able to apply each script in sequence.It would be easiest to write these in go, given much of the formatting will have to do with datastore keys or protobufs. things that would make this easier:
The text was updated successfully, but these errors were encountered: