-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
3 changed files
with
9 additions
and
9 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
14 changes: 7 additions & 7 deletions
14
indexer-and-cache-migrations/1736866698_current_share_price.up.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,17 +1,17 @@ | ||
CREATE SCHEMA IF NOT EXISTS base_indexer; | ||
CREATE SCHEMA IF NOT EXISTS base_proxy; | ||
|
||
CREATE TYPE base_indexer.method AS ENUM ('eth_call'); | ||
CREATE TYPE base_proxy.method AS ENUM ('eth_call'); | ||
|
||
CREATE TABLE base_indexer.json_rpc_cache( | ||
CREATE TABLE base_proxy.json_rpc_cache( | ||
chain_id BIGINT NOT NULL, | ||
block_number BIGINT NOT NULL, | ||
method base_indexer.method NOT NULL, | ||
method base_proxy.method NOT NULL, | ||
to_address TEXT NOT NULL, | ||
input TEXT NOT NULL, | ||
result TEXT NOT NULL | ||
); | ||
|
||
-- Indexes for common query patterns | ||
CREATE INDEX idx_json_rpc_cache_block_number ON base_indexer.json_rpc_cache(block_number); | ||
CREATE INDEX idx_json_rpc_cache_input ON base_indexer.json_rpc_cache(input); | ||
CREATE INDEX idx_json_rpc_cache_method_input ON base_indexer.json_rpc_cache(method, input); | ||
CREATE INDEX idx_json_rpc_cache_block_number ON base_proxy.json_rpc_cache(block_number); | ||
CREATE INDEX idx_json_rpc_cache_input ON base_proxy.json_rpc_cache(input); | ||
CREATE INDEX idx_json_rpc_cache_method_input ON base_proxy.json_rpc_cache(method, input); |
2 changes: 1 addition & 1 deletion
2
indexer-and-cache-migrations/1737498243_histoflux_cursor.down.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 +1 @@ | ||
DROP TABLE base_indexer.histoflux_cursor; | ||
DROP TABLE base_proxy.histoflux_cursor; |