2021-01-01 12:19:48 +00:00
|
|
|
## chantools migratedb
|
|
|
|
|
|
|
|
Apply all recent lnd channel database migrations
|
|
|
|
|
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
This command opens an lnd channel database in write mode
|
|
|
|
and applies all recent database migrations to it. This can be used to update
|
|
|
|
an old database file to be compatible with the current version that chantools
|
|
|
|
needs to read the database content.
|
|
|
|
|
|
|
|
CAUTION: Running this command will make it impossible to use the channel DB
|
|
|
|
with an older version of lnd. Downgrading is not possible and you'll need to
|
2023-09-18 16:35:01 +00:00
|
|
|
run lnd v0.17.0-beta or later after using this command!'
|
2021-01-01 12:19:48 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
chantools migratedb [flags]
|
|
|
|
```
|
|
|
|
|
|
|
|
### Examples
|
|
|
|
|
|
|
|
```
|
|
|
|
chantools migratedb \
|
|
|
|
--channeldb ~/.lnd/data/graph/mainnet/channel.db
|
|
|
|
```
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
```
|
|
|
|
--channeldb string lnd channel.db file to migrate
|
|
|
|
-h, --help help for migratedb
|
|
|
|
```
|
|
|
|
|
|
|
|
### Options inherited from parent commands
|
|
|
|
|
|
|
|
```
|
|
|
|
-r, --regtest Indicates if regtest parameters should be used
|
2023-09-18 13:09:44 +00:00
|
|
|
-s, --signet Indicates if the public signet parameters should be used
|
2021-01-01 12:19:48 +00:00
|
|
|
-t, --testnet Indicates if testnet parameters should be used
|
|
|
|
```
|
|
|
|
|
|
|
|
### SEE ALSO
|
|
|
|
|
|
|
|
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels
|
|
|
|
|