Skip to content

Commit

Permalink
set tx hash as unique index
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Jan 22, 2024
1 parent 61cc6cd commit 241ddc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/migrate/migrations/00015_pending_transaction.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CREATE TABLE pending_transaction
CREATE INDEX idx_pending_transaction_on_sender_type_status_nonce
ON pending_transaction (sender_type, status, nonce);

CREATE INDEX idx_pending_transaction_on_hash ON pending_transaction(hash);
CREATE UNIQUE INDEX unique_idx_pending_transaction_on_hash ON pending_transaction(hash);

CREATE INDEX idx_pending_transaction_on_sender_address_nonce ON pending_transaction(sender_address, nonce);

Expand Down

0 comments on commit 241ddc5

Please sign in to comment.