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.
As js-ipfs evolves and new technologies, algorithms and data structures are incorporated it is necessary to
49
54
enable users to transition between versions. Different versions of js-ipfs may expect a different IPFS repo structure or content (see: [IPFS repo spec](https://github.com/ipfs/specs/tree/master/repo), [JS implementation](https://github.com/ipfs/js-ipfs-repo) ).
50
55
So the IPFS repo is versioned, and this package provides a framework to create migrations to transition
@@ -106,9 +116,9 @@ Executes a forward migration to a specific version, or to the latest version if
106
116
107
117
*`path` (string, mandatory) - path to the repo to be migrated
108
118
*`toVersion` (int, mandatory) - version to which the repo should be migrated.
109
-
*`options` (object, optional) - options for the migration
119
+
*`options` (object, mandatory) - options for the migration
110
120
*`options.ignoreLock` (bool, optional) - if true will not lock the repo when applying migrations. Use with caution.
111
-
*`options.repoOptions` (object, optional) - options that are passed to migrations, that use them to construct the datastore. (options are the same as for IPFSRepo).
121
+
*`options.repoOptions` (object, mandatory) - options that are passed to migrations, that use them to construct the datastore. (options are the same as for IPFSRepo).
112
122
*`options.onProgress` (function, optional) - callback that is called after finishing execution of each migration to report progress.
113
123
*`options.isDryRun` (bool, optional) - flag that indicates if it is a dry run that should give the same output as running a migration but without making any actual changes.
114
124
@@ -129,9 +139,9 @@ Executes backward migration to a specific version.
129
139
130
140
*`path` (string, mandatory) - path to the repo to be reverted
131
141
*`toVersion` (int, mandatory) - version to which the repo should be reverted to.
132
-
*`options` (object, optional) - options for the reversion
142
+
*`options` (object, mandatory) - options for the reversion
133
143
*`options.ignoreLock` (bool, optional) - if true will not lock the repo when applying migrations. Use with caution.
134
-
*`options.repoOptions` (object, optional) - options that are passed to migrations, that use them to construct the datastore. (options are the same as for IPFSRepo).
144
+
*`options.repoOptions` (object, mandatory) - options that are passed to migrations, that use them to construct the datastore. (options are the same as for IPFSRepo).
135
145
*`options.onProgress` (function, optional) - callback that is called after finishing execution of each migration to report progress.
136
146
*`options.isDryRun` (bool, optional) - flag that indicates if it is a dry run that should give the same output as running a migration but without making any actual changes.
0 commit comments