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

export class RenameSraOrdersFilledAmounts1542152278484 implements MigrationInterface {
    public async up(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.renameColumn('raw.sra_orders', 'maker_asset_filled_amount', 'maker_asset_amount');
        await queryRunner.renameColumn('raw.sra_orders', 'taker_asset_filled_amount', 'taker_asset_amount');
    }

    public async down(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.renameColumn('raw.sra_orders', 'maker_asset_amount', 'maker_asset_filled_amount');
        await queryRunner.renameColumn('raw.sra_orders', 'taker_asset_amount', 'taker_asset_filled_amount');
    }
}