Skip to content

Commit

Permalink
change amount fields type from integer to decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Jul 28, 2023
1 parent 3e74f75 commit dfe295a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ CREATE TABLE IF NOT EXISTS hivemapper.mints (
id SERIAL PRIMARY KEY,
transaction_id INTEGER NOT NULL,
to_address TEXT NOT NULL,
amount INTEGER NOT NULL,
amount DECIMAL NOT NULL,
CONSTRAINT fk_transaction FOREIGN KEY (transaction_id) REFERENCES hivemapper.transactions(id)
);
Expand Down Expand Up @@ -88,15 +88,15 @@ CREATE TABLE IF NOT EXISTS hivemapper.transfers (
transaction_id INTEGER NOT NULL,
from_address TEXT NOT NULL,
to_address TEXT NOT NULL,
amount INTEGER NOT NULL,
amount DECIMAL NOT NULL,
CONSTRAINT fk_transaction FOREIGN KEY (transaction_id) REFERENCES hivemapper.transactions(id)
);
CREATE TABLE IF NOT EXISTS hivemapper.burns (
id SERIAL PRIMARY KEY,
transaction_id INTEGER NOT NULL,
from_address TEXT NOT NULL,
amount INTEGER NOT NULL,
amount DECIMAL NOT NULL,
CONSTRAINT fk_transaction FOREIGN KEY (transaction_id) REFERENCES hivemapper.transactions(id)
);
`

0 comments on commit dfe295a

Please sign in to comment.