diff --git a/src/daemon/config.js b/src/daemon/config.js index 43efe53f1..21b168226 100644 --- a/src/daemon/config.js +++ b/src/daemon/config.js @@ -150,7 +150,7 @@ const getGatewayPort = (config) => getHttpPort(config.Addresses.Gateway) */ function migrateConfig (ipfsd) { // Bump revision number when new migration rule is added - const REVISION = 5 + const REVISION = 6 const REVISION_KEY = 'daemonConfigRevision' const CURRENT_REVISION = store.get(REVISION_KEY, 0) @@ -231,6 +231,10 @@ function migrateConfig (ipfsd) { } } + if (CURRENT_REVISION < 6) { + ipfsd.api.files.chcid('/', { cidVersion: 1 }) + } + if (changed) { try { writeConfigFile(ipfsd, config)