-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop columns and logging that aren't useful
- Loading branch information
Showing
2 changed files
with
7 additions
and
17 deletions.
There are no files selected for viewing
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,16 +1,13 @@ | ||
-- +migrate Up | ||
|
||
-- index to find transactions in ledgers by hash | ||
-- indexing table to find transactions in ledgers by hash | ||
CREATE TABLE transactions ( | ||
hash NCHAR(64) PRIMARY KEY, | ||
ledger_sequence INTEGER NOT NULL, | ||
application_order INTEGER NOT NULL, | ||
-- possibly a useful search index for Soroban-oriented queries, e.g. | ||
-- transactions that involve the SAC or have just events in general | ||
is_soroban BOOLEAN NOT NULL, | ||
FOREIGN KEY (ledger_sequence) | ||
REFERENCES ledger_close_meta (sequence) | ||
application_order INTEGER NOT NULL | ||
); | ||
|
||
CREATE INDEX index_ledger_sequence ON transactions(ledger_sequence); | ||
|
||
-- +migrate Down | ||
drop table transactions cascade; |
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