Skip to content

Commit 6a7286d

Browse files
committed
chore: Changed the data type for currency rate from float to numeric
1 parent f159ada commit 6a7286d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chart/database/schemas/data.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CREATE TABLE if not exists currency(
22
from_currency TEXT NOT NULL,
33
conv_currency TEXT NOT NULL,
4-
rate FLOAT NOT NULL,
4+
rate NUMERIC(30) NOT NULL,
55
date DATE NOT NULL
66
);
77

shared/database/data/schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CREATE TABLE IF NOT EXISTS currency(
22
from_currency TEXT NOT NULL,
33
conv_currency TEXT NOT NULL,
4-
rate FLOAT NOT NULL,
4+
rate NUMERIC(30) NOT NULL,
55
date DATE NOT NULL
66
);
77

0 commit comments

Comments
 (0)