diff options
author | Xianny <8582774+xianny@users.noreply.github.com> | 2019-01-11 05:07:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-11 05:07:52 +0800 |
commit | a5b7a351609a5e6689bb97990216153f64302462 (patch) | |
tree | c5a3c0299c491737c869929e372d6c0318c11f73 /packages/pipeline/migrations | |
parent | 53fc860d6190c19f13c451eb89dd5c0c1cdcd1f4 (diff) | |
download | dexon-sol-tools-a5b7a351609a5e6689bb97990216153f64302462.tar dexon-sol-tools-a5b7a351609a5e6689bb97990216153f64302462.tar.gz dexon-sol-tools-a5b7a351609a5e6689bb97990216153f64302462.tar.bz2 dexon-sol-tools-a5b7a351609a5e6689bb97990216153f64302462.tar.lz dexon-sol-tools-a5b7a351609a5e6689bb97990216153f64302462.tar.xz dexon-sol-tools-a5b7a351609a5e6689bb97990216153f64302462.tar.zst dexon-sol-tools-a5b7a351609a5e6689bb97990216153f64302462.zip |
upgrade to ddex api v3 (#1507)
Diffstat (limited to 'packages/pipeline/migrations')
-rw-r--r-- | packages/pipeline/migrations/1547153875669-UpdateDDexAPIToV3.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/pipeline/migrations/1547153875669-UpdateDDexAPIToV3.ts b/packages/pipeline/migrations/1547153875669-UpdateDDexAPIToV3.ts new file mode 100644 index 000000000..957af4941 --- /dev/null +++ b/packages/pipeline/migrations/1547153875669-UpdateDDexAPIToV3.ts @@ -0,0 +1,21 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class UpdateDDexAPIToV31547153875669 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise<any> { + await queryRunner.query(` + UPDATE raw.token_orderbook_snapshots + SET quote_asset_symbol='WETH' + WHERE quote_asset_symbol='ETH' AND + source='ddex'; + `); + } + + public async down(queryRunner: QueryRunner): Promise<any> { + await queryRunner.query(` + UPDATE raw.token_orderbook_snapshots + SET quote_asset_symbol='ETH' + WHERE quote_asset_symbol='WETH' AND + source='ddex'; + `); + } +} |