diff --git a/database/src/main/resources/db/migration/V1_91__Create_tx_processing_failures_table.sql b/database/src/main/resources/db/migration/V1_91__Create_tx_processing_failures_table.sql index e9511adc..2adc25c1 100644 --- a/database/src/main/resources/db/migration/V1_91__Create_tx_processing_failures_table.sql +++ b/database/src/main/resources/db/migration/V1_91__Create_tx_processing_failures_table.sql @@ -1,27 +1,12 @@ SELECT 'Create tx_processing_failures table' AS comment; -CREATE TABLE IF NOT EXISTS tx_processing_failures -( - block_height - INT - NOT - NULL, - tx_hash - VARCHAR -( - 128 -) NOT NULL, - process_type VARCHAR -( - 64 -) NOT NULL, + +CREATE TABLE IF NOT EXISTS tx_processing_failures ( + block_height INT NOT NULL, + tx_hash VARCHAR(128) NOT NULL, + process_type VARCHAR(64) NOT NULL, failure_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, error_message TEXT DEFAULT NULL, retried BOOLEAN NOT NULL DEFAULT FALSE, success BOOLEAN NOT NULL DEFAULT FALSE, - PRIMARY KEY -( - block_height, - tx_hash, - process_type -) - ); \ No newline at end of file + PRIMARY KEY (block_height, tx_hash, process_type) +);