diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-17 04:55:54 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:25 +0800 |
commit | d6dff5f86a40bc36d43cfce55c1d408a856735b1 (patch) | |
tree | cd6bf34b95b240f1e121cc2fa4099b29980be653 /packages/pipeline/migrations | |
parent | 4a715c30fdc7d46dfb90f23418bdeec4161db322 (diff) | |
download | dexon-sol-tools-d6dff5f86a40bc36d43cfce55c1d408a856735b1.tar dexon-sol-tools-d6dff5f86a40bc36d43cfce55c1d408a856735b1.tar.gz dexon-sol-tools-d6dff5f86a40bc36d43cfce55c1d408a856735b1.tar.bz2 dexon-sol-tools-d6dff5f86a40bc36d43cfce55c1d408a856735b1.tar.lz dexon-sol-tools-d6dff5f86a40bc36d43cfce55c1d408a856735b1.tar.xz dexon-sol-tools-d6dff5f86a40bc36d43cfce55c1d408a856735b1.tar.zst dexon-sol-tools-d6dff5f86a40bc36d43cfce55c1d408a856735b1.zip |
Add support for pulling Cancel and CancelUpTo events
Diffstat (limited to 'packages/pipeline/migrations')
-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;`, + ); + } +} |