aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/migrations
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-14 07:44:53 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:04:25 +0800
commita2aeca7b66ebe78ff548f7d86b7ec04afbe75601 (patch)
tree1c2e7a508d19c92ca83f3cba0208f0c14df62008 /packages/pipeline/migrations
parente394c4fe1dd3bcceb382bb56e9c63e0b320e193f (diff)
downloaddexon-sol-tools-a2aeca7b66ebe78ff548f7d86b7ec04afbe75601.tar
dexon-sol-tools-a2aeca7b66ebe78ff548f7d86b7ec04afbe75601.tar.gz
dexon-sol-tools-a2aeca7b66ebe78ff548f7d86b7ec04afbe75601.tar.bz2
dexon-sol-tools-a2aeca7b66ebe78ff548f7d86b7ec04afbe75601.tar.lz
dexon-sol-tools-a2aeca7b66ebe78ff548f7d86b7ec04afbe75601.tar.xz
dexon-sol-tools-a2aeca7b66ebe78ff548f7d86b7ec04afbe75601.tar.zst
dexon-sol-tools-a2aeca7b66ebe78ff548f7d86b7ec04afbe75601.zip
Rename taker and maker amounts in sra_orders
Diffstat (limited to 'packages/pipeline/migrations')
-rw-r--r--packages/pipeline/migrations/1542152278484-RenameSraOrdersFilledAmounts.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/pipeline/migrations/1542152278484-RenameSraOrdersFilledAmounts.ts b/packages/pipeline/migrations/1542152278484-RenameSraOrdersFilledAmounts.ts
new file mode 100644
index 000000000..a13e3efa5
--- /dev/null
+++ b/packages/pipeline/migrations/1542152278484-RenameSraOrdersFilledAmounts.ts
@@ -0,0 +1,13 @@
+import { MigrationInterface, QueryRunner } from 'typeorm';
+
+export class RenameSraOrdersFilledAmounts1542152278484 implements MigrationInterface {
+ public async up(queryRunner: QueryRunner): Promise<any> {
+ await queryRunner.renameColumn('raw.sra_orders', 'maker_asset_filled_amount', 'maker_asset_amount');
+ await queryRunner.renameColumn('raw.sra_orders', 'taker_asset_filled_amount', 'taker_asset_amount');
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<any> {
+ await queryRunner.renameColumn('raw.sra_orders', 'maker_asset_amount', 'maker_asset_filled_amount');
+ await queryRunner.renameColumn('raw.sra_orders', 'taker_asset_amount', 'taker_asset_filled_amount');
+ }
+}