We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0dcad7 commit 5870a24Copy full SHA for 5870a24
src/daemon/config.js
@@ -150,7 +150,7 @@ const getGatewayPort = (config) => getHttpPort(config.Addresses.Gateway)
150
*/
151
function migrateConfig (ipfsd) {
152
// Bump revision number when new migration rule is added
153
- const REVISION = 5
+ const REVISION = 6
154
const REVISION_KEY = 'daemonConfigRevision'
155
const CURRENT_REVISION = store.get(REVISION_KEY, 0)
156
@@ -231,6 +231,10 @@ function migrateConfig (ipfsd) {
231
}
232
233
234
+ if (CURRENT_REVISION < 6) {
235
+ ipfsd.api.files.chcid('/', { cidVersion: 1 })
236
+ }
237
+
238
if (changed) {
239
try {
240
writeConfigFile(ipfsd, config)
0 commit comments