Skip to content

Commit

Permalink
format sql
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Aug 23, 2024
1 parent 3ba3eef commit bb9a31f
Showing 1 changed file with 7 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -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
)
);
PRIMARY KEY (block_height, tx_hash, process_type)
);

0 comments on commit bb9a31f

Please sign in to comment.