MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / up

Function up

packages/core/fumadb/src/migration-engine/create.ts:205–210  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

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.");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected