increase decimals in table

This commit is contained in:
Pablo Martin 2024-06-27 17:48:07 +02:00
parent 236fb39f28
commit 0bd0d7c862

View file

@ -142,7 +142,7 @@ class DWHRateWriter(RateWriter):
CREATE TABLE IF NOT EXISTS {}.{} (
from_currency CHAR(3) NOT NULL,
to_currency CHAR(3) NOT NULL,
rate DECIMAL(19, 4) NOT NULL,
rate DECIMAL(23, 8) NOT NULL,
rate_date_utc DATE NOT NULL,
exported_at_utc TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (from_currency, to_currency, rate_date_utc)