fix migration (#19)
- add missing schema prefix - add missing index on blockhash
This commit is contained in:
parent
88cfaeb56d
commit
30a640434a
|
@ -24,7 +24,7 @@ CREATE TABLE banking_stage_results_2.errors (
|
|||
CREATE TABLE banking_stage_results_2.transaction_slot (
|
||||
transaction_id BIGINT,
|
||||
slot BIGINT,
|
||||
error_code INT REFERENCES errors(error_code),
|
||||
error_code INT REFERENCES banking_stage_results_2.errors(error_code),
|
||||
count INT,
|
||||
utc_timestamp TIMESTAMP NOT NULL,
|
||||
PRIMARY KEY (transaction_id, slot, error_code)
|
||||
|
@ -60,6 +60,8 @@ CREATE TABLE banking_stage_results_2.accounts_map_transaction(
|
|||
CREATE INDEX accounts_map_transaction_acc_id ON banking_stage_results_2.accounts_map_transaction(acc_id);
|
||||
CREATE INDEX accounts_map_transaction_transaction_id ON banking_stage_results_2.accounts_map_transaction(transaction_id);
|
||||
|
||||
CREATE INDEX idx_blocks_block_hash ON banking_stage_results_2.blocks(block_hash);
|
||||
|
||||
CREATE TABLE banking_stage_results_2.accounts_map_blocks (
|
||||
acc_id BIGINT,
|
||||
slot BIGINT,
|
||||
|
|
Loading…
Reference in New Issue