()
| 25 | |
| 26 | class MigrationTest2 extends Migration { |
| 27 | async up(): Promise<void> { |
| 28 | this.addSql('select 1 + 1'); |
| 29 | this.addSql(raw('select 1 + 1')); |
| 30 | this.addSql(raw('select 2 + 2 as count2')); |
| 31 | const res = await this.execute('select 1 + 1 as count1'); |
| 32 | expect(res).toEqual([{ count1: 2 }]); |
| 33 | |
| 34 | await this.getEntityManager().persist(FooBar2.create('fb')).flush(); |
| 35 | } |
| 36 | |
| 37 | override isTransactional(): boolean { |
| 38 | return false; |