This repository was archived by the owner on Oct 1, 2021. It is now read-only.
Commit aae9aec
feat: initial implementation (#1)
* Basic setup
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Basic migrator functionality
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Strict mode
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Linting
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Working CLI
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Improving CLI usablity
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Dropping migration class interface
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Improving error handling and other tweaks of migrations
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Refactoring to drop ipfs-repo in favor of datastore
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Refactor migrator to pass only repo's path into migration and not datastore instance.
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* 'add' command for CLI
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Linting
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Writing proper README
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Revert tests
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Migrate tests
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* More tests
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Tests for lock.js and version.js
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Description of tests
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Update interface-datastore dependency
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Fixing package-lock with correct interface-datastore version
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Update wording of CLI reporter
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Correct doctype for optional parameters
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Exposing repo.getVersion
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Improving verification of reversibility
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Adding check if repo is initialized
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Renaming logging key
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Adding parameter ignoreLock
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Adding parameter for options
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Adding documentation for ignoreLock and options parameters
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Instructions on integration with js-ipfs
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Updating dependencies
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Implementing Error's codes
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Refactoring into options object
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Merging revert and migrate CLI commands
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Extanding README with usage and other details
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Integration test
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Removing error message assertions
License: MIT
Signed-off-by: Adam Uhlir <[email protected]>
* Removing package.json for migrations
* Adding basic sharness tests
* Removing 'reversible' flag from migration's API
* Renaming progressCb parameter to onProgress
* Removing package.json mentions and discussing migration's dependencies
* Linting
* Sharness tests
* Non-throw error handling for getLatestMigrationVersion
* Check if migration exist for migrate()
* Fixing integration tests
* Grammar check
Co-Authored-By: dirkmc <[email protected]>
* Info about versioning
* Grammar fixes
Co-Authored-By: dirkmc <[email protected]>
* Messages tweak
Co-Authored-By: dirkmc <[email protected]>
* Default paramaters
Co-Authored-By: dirkmc <[email protected]>
* Tweaks
* fix: update functions signature in templates
* doc: CI/codecov/dependencies badges
* style: lint fix
* Message wordings
Co-Authored-By: dirkmc <[email protected]>
* fix: tweaks
* style: package json lint fix
* fix: update add command
* feat: utils for properly getting Datastore and its options
* feat: when error occures save last succesfull migration version
* style: lint
* fix: apply review suggestions
Co-Authored-By: David Dias <[email protected]>1 parent f6a7e24 commit aae9aec
File tree
38 files changed
+21002
-1
lines changed- migrations
- src
- repo
- test
- fixtures/test-repo
- sharness
- lib
- test-migrations
- migration-2
38 files changed
+21002
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments