()
| 220 | await fs.writeFile(fs.normalizePath(this.absolutePath, fileName), code, { flush: true }); |
| 221 | |
| 222 | const updateStorage = async () => { |
| 223 | for (const migration of toRollup) { |
| 224 | await this.storage.unlogMigration({ name: migration.name }); |
| 225 | } |
| 226 | |
| 227 | await this.storage.logMigration({ name: fileName.replace(/\.[jt]s$/, '') }); |
| 228 | }; |
| 229 | |
| 230 | if (this.options.transactional) { |
| 231 | await this.driver.getConnection().transactional(async trx => { |
no test coverage detected