-
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.
add new database create script, entity, and insertOrUpdate, add TODO …
…for issue 538
- Loading branch information
1 parent
5861521
commit 19e9bcc
Showing
3 changed files
with
108 additions
and
36 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
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, | ||
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 | ||
) | ||
); |
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
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