diff --git a/package.json b/package.json index 7baa3a7f..9fb31365 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "debug": "^4.1.0", "err-code": "^2.0.0", "interface-datastore": "^2.0.0", - "ipfs-repo-migrations": "^3.0.0", + "ipfs-repo-migrations": "^4.0.0", "ipfs-utils": "^2.3.1", "ipld-block": "^0.10.0", "it-map": "^1.0.2", diff --git a/src/index.js b/src/index.js index 4ee18545..04cce5a6 100644 --- a/src/index.js +++ b/src/index.js @@ -334,10 +334,10 @@ class IpfsRepo { if (currentRepoVersion > toVersion) { log('reverting to version ' + toVersion) - return migrator.revert(this.path, toVersion, { ignoreLock: true, repoOptions: this.options }) + return migrator.revert(this.path, this.options, toVersion, { ignoreLock: true }) } else { log('migrating to version ' + toVersion) - return migrator.migrate(this.path, toVersion, { ignoreLock: true, repoOptions: this.options }) + return migrator.migrate(this.path, this.options, toVersion, { ignoreLock: true }) } }