-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create new table to hold tx access list; they reference the transacti…
…on_cids entry they belong to
- Loading branch information
Showing
3 changed files
with
291 additions
and
36 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
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,15 @@ | ||
-- +goose Up | ||
CREATE TABLE eth.access_list_element ( | ||
id SERIAL PRIMARY KEY, | ||
tx_id INTEGER NOT NULL REFERENCES eth.transaction_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED, | ||
index INTEGER NOT NULL, | ||
address VARCHAR(66), | ||
storage_keys VARCHAR(66)[], | ||
UNIQUE (tx_id, index) | ||
); | ||
|
||
CREATE INDEX accesss_list_element_address_index ON eth.access_list_element USING btree (address); | ||
|
||
-- +goose Down | ||
DROP INDEX eth.accesss_list_element_address_index; | ||
DROP TABLE eth.access_list_element; |
Oops, something went wrong.