Files
sentiment-engine/prod/clickhouse/prodgreen/01_alter_account_events_leverage.sql

7 lines
425 B
SQL

ALTER TABLE dolphin_prodgreen.account_events
ADD COLUMN IF NOT EXISTS current_open_notional Float64 DEFAULT 0,
ADD COLUMN IF NOT EXISTS current_account_leverage Float32 DEFAULT 0,
ADD COLUMN IF NOT EXISTS exchange_leverage UInt8 DEFAULT 0,
ADD COLUMN IF NOT EXISTS exchange_leverage_mode LowCardinality(String) DEFAULT '',
ADD COLUMN IF NOT EXISTS leverage_mapping_rule LowCardinality(String) DEFAULT '';