-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ba3eef
commit bb9a31f
Showing
1 changed file
with
7 additions
and
22 deletions.
There are no files selected for viewing
29 changes: 7 additions & 22 deletions
29
database/src/main/resources/db/migration/V1_91__Create_tx_processing_failures_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
); |