From e0a980363c73a6ec75542bd89b36be47bed9b4bd Mon Sep 17 00:00:00 2001 From: nolash Date: Fri, 5 Mar 2021 20:45:01 +0100 Subject: [PATCH] Set value db fields in cic_cache to handle biiig numbers --- .../cic_cache/db/migrations/default/versions/63b629f14a85_.py | 4 ++-- apps/cic-cache/config/database.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/cic-cache/cic_cache/db/migrations/default/versions/63b629f14a85_.py b/apps/cic-cache/cic_cache/db/migrations/default/versions/63b629f14a85_.py index 10bff964..9add4c19 100644 --- a/apps/cic-cache/cic_cache/db/migrations/default/versions/63b629f14a85_.py +++ b/apps/cic-cache/cic_cache/db/migrations/default/versions/63b629f14a85_.py @@ -29,8 +29,8 @@ def upgrade(): sa.Column('source_token', sa.String(42), nullable=False), sa.Column('destination_token', sa.String(42), nullable=False), sa.Column('success', sa.Boolean, nullable=False), - sa.Column('from_value', sa.BIGINT(), nullable=False), - sa.Column('to_value', sa.BIGINT(), nullable=False), + sa.Column('from_value', sa.NUMERIC(), nullable=False), + sa.Column('to_value', sa.NUMERIC(), nullable=False), sa.Column('date_block', sa.DateTime, nullable=False), ) op.create_table( diff --git a/apps/cic-cache/config/database.ini b/apps/cic-cache/config/database.ini index 43de56bf..e34a1ff5 100644 --- a/apps/cic-cache/config/database.ini +++ b/apps/cic-cache/config/database.ini @@ -1,5 +1,5 @@ [database] -NAME=cic-eth +NAME=cic_cache USER=postgres PASSWORD= HOST=localhost