Migrations
Occasionally, a new node version requires storage schema changes. These can be applied using the migrate command after
stopping the node.
- Native binary
- Docker image
miden-node migrate --data-directory full-node-data
docker run --rm \
-v miden-full-node-data:/data \
ghcr.io/0xmiden/miden-node:<release-tag> \
miden-node migrate --data-directory /data
Backwards migrations are not supported. If a data directory is older than the minimum supported schema version for a release, migrate forward in stages with older compatible versions first.
The node will error on startup if any migrations have not been applied. It is safe to run the migration command if all migrations have already been applied.