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

Function down

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

Source from the content-addressed store, hash-verified

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.");
214
215 return this.migrateTo(prev.version, options);
216 },
217 async migrateTo(version, options = {}) {
218 const {
219 updateSettings: updateVersion = true,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected