aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/migrations/1542401122477-MakeTakerAddressNullable.ts
diff options
context:
space:
mode:
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;`,
+ );
+ }
+}