diff --git a/db/migrations/state/0001.sql b/db/migrations/state/0001.sql index 77d7d5c..234cb92 100644 --- a/db/migrations/state/0001.sql +++ b/db/migrations/state/0001.sql @@ -40,7 +40,7 @@ CREATE TABLE state.virtual_batch batch_num BIGINT PRIMARY KEY REFERENCES state.batch (batch_num) ON DELETE CASCADE, tx_hash VARCHAR, coinbase VARCHAR, - block_num BIGINT NOT NULL REFERENCES state.block (block_num) ON DELETE CASCADE + block_num BIGINT NOT NULL REFERENCES state.block (block_num) ON DELETE CASCADE, seen_at BIGINT NOT NULL REFERENCES state.block (block_num) ON DELETE CASCADE );