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.
-[Creating a new migration](#creating-a-new-migration)
@@ -115,10 +115,10 @@ Executes a forward migration to a specific version, or to the latest version if
115
115
**Arguments:**
116
116
117
117
*`path` (string, mandatory) - path to the repo to be migrated
118
+
*`repoOptions` (object, mandatory) - options that are passed to migrations, that use them to construct the datastore. (options are the same as for IPFSRepo).
118
119
*`toVersion` (int, mandatory) - version to which the repo should be migrated.
119
-
*`options` (object, mandatory) - options for the migration
120
+
*`options` (object, optional) - options for the migration
120
121
*`options.ignoreLock` (bool, optional) - if true will not lock the repo when applying migrations. Use with caution.
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).
122
122
*`options.onProgress` (function, optional) - callback that is called after finishing execution of each migration to report progress.
123
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.
124
124
@@ -131,17 +131,17 @@ Signature of the progress callback.
131
131
*`counter` (int) - index of current migration.
132
132
*`totalMigrations` (int) - total count of migrations that will be run.
Executes backward migration to a specific version.
137
137
138
138
**Arguments:**
139
139
140
140
*`path` (string, mandatory) - path to the repo to be reverted
141
+
*`repoOptions` (object, mandatory) - options that are passed to migrations, that use them to construct the datastore. (options are the same as for IPFSRepo).
141
142
*`toVersion` (int, mandatory) - version to which the repo should be reverted to.
142
-
*`options` (object, mandatory) - options for the reversion
143
+
*`options` (object, optional) - options for the reversion
143
144
*`options.ignoreLock` (bool, optional) - if true will not lock the repo when applying migrations. Use with caution.
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).
145
145
*`options.onProgress` (function, optional) - callback that is called after finishing execution of each migration to report progress.
146
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.
* @param {Object} repoOptions - Options that are passed to migrations, that can use them to correctly construct datastore. Options are same like for IPFSRepo.
39
40
* @param {int} toVersion - Version to which the repo should be migrated.
40
-
* @param {Object} options - Options for migration
41
+
* @param {Object?} options - Options for migration
41
42
* @param {boolean?} options.ignoreLock - Won't lock the repo for applying the migrations. Use with caution.
42
-
* @param {object?} options.repoOptions - Options that are passed to migrations, that can use them to correctly construct datastore. Options are same like for IPFSRepo.
43
43
* @param {function?} options.onProgress - Callback which will be called after each executed migration to report progress
44
44
* @param {boolean?} options.isDryRun - Allows to simulate the execution of the migrations without any effect.
45
45
* @param {array?} options.migrations - Array of migrations to migrate. If undefined, the bundled migrations are used. Mainly for testing purpose.
* @param {Object} repoOptions - Options that are passed to migrations, that can use them to correctly construct datastore. Options are same like for IPFSRepo.
124
129
* @param {int} toVersion - Version to which the repo will be reverted.
125
-
* @param {Object} options - Options for the reversion
130
+
* @param {Object?} options - Options for the reversion
126
131
* @param {function?} options.onProgress - Callback which will be called after each reverted migration to report progress
127
-
* @param {object?} options.repoOptions - Options that are passed to migrations, that can use them to correctly construct datastore. Options are same like for IPFSRepo.
128
132
* @param {boolean?} options.isDryRun - Allows to simulate the execution of the reversion without any effects. Make sense to utilize onProgress with this argument.
129
133
* @param {boolean?} options.ignoreLock - Won't lock the repo for reverting the migrations. Use with caution.
130
134
* @param {array?} options.migrations - Array of migrations to migrate. If undefined, the bundled migrations are used. Mainly for testing purpose.
0 commit comments