MCPcopy
hub / github.com/prisma/prisma / applyMigrations

Method applyMigrations

packages/migrate/src/Migrate.ts:175–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173 }
174
175 public async applyMigrations(): Promise<EngineResults.ApplyMigrationsOutput> {
176 if (!this.migrationsDirectoryPath) throw new Error('this.migrationsDirectoryPath is undefined')
177
178 const migrationsList = await listMigrations(this.migrationsDirectoryPath, this.shadowDbInitScript)
179
180 return this.engine.applyMigrations({
181 migrationsList,
182 filters: this.schemaFilter,
183 })
184 }
185
186 public async evaluateDataLoss(): Promise<EngineResults.EvaluateDataLossOutput> {
187 if (!this.migrationsDirectoryPath) throw new Error('this.migrationsDirectoryPath is undefined')

Callers

nothing calls this directly

Calls 2

listMigrationsFunction · 0.90
applyMigrationsMethod · 0.65

Tested by

no test coverage detected