aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/migrations/1542249766882-AddHomepageUrlToRelayers.ts
blob: 9a4811ad553fe70b9af0d754ae9792ad063c9297 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';

export class AddHomepageUrlToRelayers1542249766882 implements MigrationInterface {
    public async up(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.addColumn(
            'raw.relayers',
            new TableColumn({ name: 'homepage_url', type: 'varchar', default: `'unknown'` }),
        );
    }

    public async down(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.dropColumn('raw.relayers', 'homepage_url');
    }
}