fix migration (#19)

- add missing schema prefix
- add missing index on blockhash
This commit is contained in:
Groovie | Mango 2023-12-13 10:01:42 +01:00 committed by GitHub
parent 88cfaeb56d
commit 30a640434a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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,