All files / projects-dev/apps/mc-api/src/migrations 1626135664099-ModularSetsSeed.ts

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

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                                                                           
import { MigrationInterface, QueryRunner } from "typeorm";

export class ModularSetsSeed1626135664099 implements MigrationInterface {
    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            INSERT INTO modular_sets (id, name, pack) VALUES
            (1, 'Bomb Scare', 'MC001'),
            (2, 'The Masters of Evil', 'MC001'),
            (3, 'Under Attack', 'MC001'),
            (4, 'The Legions of Hydra', 'MC001'),
            (5, 'The Doomsday Chair', 'MC001'),
            (6, 'Goblin Gimmicks', 'MC002'),
            (7, 'A Mess of Things', 'MC002'),
            (8, 'Power Drain', 'MC002'),
            (9, 'Running Interference', 'MC002'),
            (10, 'Hydra Assault', 'MC010'),
            (11, 'Weapon Master', 'MC010'),
            (12, 'Hydra Patrol', 'MC010'),
            (13, 'Experimental Weapons', 'MC010'),
            (14, 'Temporal', 'MC011'),
            (15, 'Anachronauts', 'MC011'),
            (16, 'Master of Time', 'MC011'),
            (17, 'Band of Badoon', 'MC016'),
            (18, 'Galactic Artifacts', 'MC016'),
            (19, 'Kree Militants', 'MC016'),
            (20, 'Menagerie Medley', 'MC016'),
            (21, 'Space Pirates', 'MC016'),
            (22, 'Kree Fanatic', 'PnP01');
        `);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            TRUNCATE TABLE modular_sets
        `);
    }
}