aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/migrations/1542401122477-MakeTakerAddressNullable.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-17 04:55:54 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:48 +0800
commit24fd2d9730d58a58929f401674175ad8a5a7fbc1 (patch)
tree17994e0f4171a796294bfa69dd126ccffef7fa90 /packages/pipeline/migrations/1542401122477-MakeTakerAddressNullable.ts
parent0397ff8b2206ab4e9308a524d635ec37ec9dda99 (diff)
downloaddexon-sol-tools-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar
dexon-sol-tools-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.gz
dexon-sol-tools-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.bz2
dexon-sol-tools-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.lz
dexon-sol-tools-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.xz
dexon-sol-tools-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.zst
dexon-sol-tools-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.ts17
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;`,
+ );
+ }
+}