()
| 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') |
nothing calls this directly
no test coverage detected