MultiChain / multichain-explorer

Web-based explorer for MultiChain blockchains
GNU Affero General Public License v3.0
177 stars 140 forks source link

Database can not be easily migrated to another computer #12

Open bitcartel opened 8 years ago

bitcartel commented 8 years ago

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

javautil commented 7 years ago

in what table?

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

bitcartel commented 7 years ago

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.