You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2021. It is now read-only.
thrownewerrors.InvalidValueError(`Current repo's version (${currentVersion}) is higher then toVersion (${toVersion}), you probably wanted to revert it?`)
thrownewerrors.InvalidValueError(`Current repo's version (${currentVersion}) is lower then toVersion (${toVersion}), you probably wanted to migrate it?`)
thrownewerrors.NonReversibleMigrationError(`It is not possible to revert to version ${toVersion} because migration version ${reversibility.version} is not reversible. Cancelling reversion.`)
thrownewerrors.NonReversibleMigrationError(`It is not possible to revert to version ${fromVersion} because migration version ${migration.version} is not reversible. Cancelling reversion.`)
223
+
}
227
224
228
225
migrationCounter++
229
226
}
230
227
}
231
228
232
-
if(migrationCounter!==(fromVersion-toVersion)){
233
-
thrownewerrors.NonReversibleMigrationError(`There are not enough migrations to perform the reversion!
234
-
Expected ${(fromVersion-toVersion)} migrations, but there are only ${migrationCounter} migrations.`)
229
+
if(migrationCounter!==(toVersion-fromVersion)){
230
+
thrownewerrors.InvalidValueError(`The ipfs-repo-migrations package does not have all migration to migrate from version ${fromVersion} to ${toVersion}`)
0 commit comments