e11f2c8c59
- currently, if we don't recognize the same diff several times (e.g. if you restart the storage diff watcher pointed at the same file), we'll add the same row to the queue on each run. - these changes assure we only queue an unrecognized diff once.
14 lines
329 B
SQL
14 lines
329 B
SQL
-- +goose Up
|
|
CREATE TABLE public.queued_storage (
|
|
id SERIAL PRIMARY KEY,
|
|
block_height BIGINT,
|
|
block_hash BYTEA,
|
|
contract BYTEA,
|
|
storage_key BYTEA,
|
|
storage_value BYTEA,
|
|
UNIQUE (block_height, block_hash, contract, storage_key, storage_value)
|
|
);
|
|
|
|
-- +goose Down
|
|
DROP TABLE public.queued_storage;
|