MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / getExecuted

Function getExecuted

packages/core/src/utils/AbstractMigrator.ts:101–111  ·  view source on GitHub ↗

* @inheritDoc

(options?: { schema?: string })

Source from the content-addressed store, hash-verified

99 * @inheritDoc
100 */
101 async getExecuted(options?: { schema?: string }): Promise<MigrationRow[]> {
102 await this.init();
103 const schema = options?.schema ?? this.options.schema;
104 this.storage.setRunSchema?.(schema);
105
106 try {
107 return await this.storage.getExecutedMigrations();
108 } finally {
109 this.storage.unsetRunSchema?.();
110 }
111 }
112
113 /**
114 * @inheritDoc

Callers

nothing calls this directly

Calls 4

initMethod · 0.65
setRunSchemaMethod · 0.65
getExecutedMigrationsMethod · 0.65
unsetRunSchemaMethod · 0.65

Tested by

no test coverage detected