diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-15 07:58:36 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | 303bbc42f4322448998f3fde202574335d1190e6 (patch) | |
tree | b0a45e28d54fef51d237ff32352dd82c891419cf /packages/pipeline/src/entities/exchange_cancel_up_to_event.ts | |
parent | 10e93bb01ffcf029821430781ef582a24901a461 (diff) | |
download | dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar.gz dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar.bz2 dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar.lz dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar.xz dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar.zst dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.zip |
Change some column types from varchar to numeric
Diffstat (limited to 'packages/pipeline/src/entities/exchange_cancel_up_to_event.ts')
-rw-r--r-- | packages/pipeline/src/entities/exchange_cancel_up_to_event.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts b/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts index 7306a1a87..752631b85 100644 --- a/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts +++ b/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts @@ -1,5 +1,8 @@ +import { BigNumber } from '@0x/utils'; import { Column, Entity, PrimaryColumn } from 'typeorm'; +import { bigNumberTransformer } from '../utils'; + @Entity({ name: 'exchange_cancel_up_to_events', schema: 'raw' }) export class ExchangeCancelUpToEvent { @PrimaryColumn({ name: 'contract_address' }) @@ -17,7 +20,7 @@ export class ExchangeCancelUpToEvent { public makerAddress!: string; @Column({ name: 'sender_address' }) public senderAddress!: string; - @Column({ name: 'order_epoch' }) - public orderEpoch!: string; + @Column({ name: 'order_epoch', type: 'numeric', transformer: bigNumberTransformer }) + public orderEpoch!: BigNumber; // TODO(albrow): Include topics? } |