All files / projects-dev/apps/mc-api/src/migrations 1692977775797-AddNewModularSetsNextEvolution.ts

0% Statements 0/46
0% Branches 0/1
0% Functions 0/1
0% Lines 0/46

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47                                                                                             
import { MigrationInterface, QueryRunner } from "typeorm";

export class AddNewModularSetsNextEvolution1692977775797 implements MigrationInterface {
    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`UPDATE scenarios SET name = "Morlock Siege" WHERE id = "44"`);
        await queryRunner.query(`UPDATE scenarios SET name = "On The Run" WHERE id = "45"`);
        await queryRunner.query(`UPDATE scenarios SET name = "Juggernaut" WHERE id = "46"`);

        await queryRunner.query(`
            INSERT INTO modular_sets VALUES
            (74, 'Military Grade', 'MC040'),
            (75, 'Mutant Slayers', 'MC040'),
            (76, 'Nasty Boys', 'MC040'),
            (77, 'Hope Summers', 'MC040'),
            (78, 'Black Tom Cassidy', 'MC040'),
            (79, 'Flight', 'MC040'),
            (80, 'Super Strength', 'MC040'),
            (81, 'Telepathy', 'MC040'),
            (82, 'Extreme Measures', 'MC040'),
            (83, 'Mutant Insurrection', 'MC040')
        `);

        await queryRunner.query(`
            INSERT INTO scenarios_modular_sets VALUES
            (44, 73),
            (44, 74),
            (44, 75),
            (45, 73),
            (45, 74),
            (45, 75),
            (45, 76),
            (46, 77),
            (46, 78),
            (47, 79),
            (47, 80),
            (47, 81),
            (47, 77),
            (47, 76),
            (48, 77),
            (48, 82),
            (48, 83)
        `);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {}
}