(options = {})
| 203 | return list[index - 1]; |
| 204 | }, |
| 205 | async up(options = {}) { |
| 206 | const next = await this.next(); |
| 207 | if (!next) throw new Error("Already up to date."); |
| 208 | |
| 209 | return this.migrateTo(next.version, options); |
| 210 | }, |
| 211 | async down(options = {}) { |
| 212 | const prev = await this.previous(); |
| 213 | if (!prev) throw new Error("No previous schema to migrate to."); |
nothing calls this directly
no outgoing calls
no test coverage detected