removed FK contraint on error_code (#49)
This commit is contained in:
parent
64d607155c
commit
566a107145
|
@ -24,12 +24,13 @@ CREATE TABLE banking_stage_results_2.errors (
|
||||||
CREATE TABLE banking_stage_results_2.transaction_slot (
|
CREATE TABLE banking_stage_results_2.transaction_slot (
|
||||||
transaction_id BIGINT,
|
transaction_id BIGINT,
|
||||||
slot BIGINT,
|
slot BIGINT,
|
||||||
error_code INT REFERENCES banking_stage_results_2.errors(error_code),
|
error_code INT,
|
||||||
count INT,
|
count INT,
|
||||||
utc_timestamp TIMESTAMP NOT NULL,
|
utc_timestamp TIMESTAMP NOT NULL,
|
||||||
PRIMARY KEY (transaction_id, slot, error_code)
|
PRIMARY KEY (transaction_id, slot, error_code)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
CREATE INDEX idx_transaction_slot_timestamp ON banking_stage_results_2.transaction_slot(utc_timestamp);
|
CREATE INDEX idx_transaction_slot_timestamp ON banking_stage_results_2.transaction_slot(utc_timestamp);
|
||||||
CREATE INDEX idx_transaction_slot_slot ON banking_stage_results_2.transaction_slot(slot);
|
CREATE INDEX idx_transaction_slot_slot ON banking_stage_results_2.transaction_slot(slot);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue