mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-30 00:25:52 +00:00
no duplicates in keys table for postgres
This commit is contained in:
@@ -844,11 +844,10 @@ create table if not exists account_transactions7 partition of account_transactio
|
||||
|
||||
CREATE TABLE IF NOT EXISTS keys (
|
||||
ledger_seq bigint NOT NULL,
|
||||
key bytea NOT NULL
|
||||
key bytea NOT NULL,
|
||||
PRIMARY KEY(ledger_seq, key)
|
||||
);
|
||||
|
||||
CREATE INDEX key_idx ON keys USING btree(ledger_seq, key);
|
||||
|
||||
-- account_tx() RPC helper. From the rippled reporting process, only the
|
||||
-- parameters without defaults are required. For the parameters with
|
||||
-- defaults, validation should be done by rippled, such as:
|
||||
|
||||
Reference in New Issue
Block a user