2019-01-22 12:15:29 +00:00
|
|
|
-- +goose Up
|
2018-05-05 20:25:54 +00:00
|
|
|
CREATE TABLE token_supply (
|
|
|
|
id SERIAL,
|
|
|
|
block_id INTEGER NOT NULL,
|
|
|
|
supply DECIMAL NOT NULL,
|
|
|
|
token_address CHARACTER VARYING(66) NOT NULL,
|
|
|
|
CONSTRAINT blocks_fk FOREIGN KEY (block_id)
|
|
|
|
REFERENCES blocks (id)
|
|
|
|
ON DELETE CASCADE
|
2019-01-22 14:07:11 +00:00
|
|
|
);
|
2019-01-22 12:15:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
-- +goose Down
|
2019-01-22 14:07:11 +00:00
|
|
|
DROP TABLE token_supply;
|