Skip to content
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

Database can not be easily migrated to another computer #12

Open
bitcartel opened this issue Sep 9, 2016 · 2 comments
Open

Database can not be easily migrated to another computer #12

bitcartel opened this issue Sep 9, 2016 · 2 comments

Comments

@bitcartel
Copy link
Contributor

A fully expanded filepath is stored in the database e.g. /home/freddy/.multichain/my-chain/multichain.conf.

@javautil
Copy link

javautil commented Feb 5, 2017

in what table?

sqlite3 database.sqlite
update datadir set dirname='targetdir'

@bitcartel
Copy link
Contributor Author

The above works, but the last path component which is the chain name cannot change. You can move ~/.multichain/chain1 to /some/where/else/chain1 and update using sqlite3 but you can't rename chain1.

In the long-term it would be better if the datadir table did not exist at all and the path was set in the config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants