diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-17 04:55:54 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | 24fd2d9730d58a58929f401674175ad8a5a7fbc1 (patch) | |
tree | 17994e0f4171a796294bfa69dd126ccffef7fa90 /packages/pipeline/migrations/1542401122477-MakeTakerAddressNullable.ts | |
parent | 0397ff8b2206ab4e9308a524d635ec37ec9dda99 (diff) | |
download | dexon-0x-contracts-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar dexon-0x-contracts-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.gz dexon-0x-contracts-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.bz2 dexon-0x-contracts-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.lz dexon-0x-contracts-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.xz dexon-0x-contracts-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.zst dexon-0x-contracts-24fd2d9730d58a58929f401674175ad8a5a7fbc1.zip |
Add support for pulling Cancel and CancelUpTo events
Diffstat (limited to 'packages/pipeline/migrations/1542401122477-MakeTakerAddressNullable.ts')
-rw-r--r-- | packages/pipeline/migrations/1542401122477-MakeTakerAddressNullable.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/pipeline/migrations/1542401122477-MakeTakerAddressNullable.ts b/packages/pipeline/migrations/1542401122477-MakeTakerAddressNullable.ts new file mode 100644 index 000000000..957c85a36 --- /dev/null +++ b/packages/pipeline/migrations/1542401122477-MakeTakerAddressNullable.ts @@ -0,0 +1,17 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class MakeTakerAddressNullable1542401122477 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise<any> { + await queryRunner.query( + `ALTER TABLE raw.exchange_cancel_events + ALTER COLUMN taker_address DROP NOT NULL;`, + ); + } + + public async down(queryRunner: QueryRunner): Promise<any> { + await queryRunner.query( + `ALTER TABLE raw.exchange_cancel_events + ALTER COLUMN taker_address SET NOT NULL;`, + ); + } +} |