diff --git a/docker-compose.yml b/docker-compose.yml index 80c8fb1b..733f6d8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -313,7 +313,7 @@ services: condition: service_healthy indexer-migrations: condition: service_started - command: ["--network", "base", "--output", "postgres"] + command: ["--network", "base-mainnet", "--output", "postgres"] indexer-migrations: container_name: indexer-migrations diff --git a/indexer-and-cache-migrations/1736866698_current_share_price.up.sql b/indexer-and-cache-migrations/1736866698_current_share_price.up.sql index e9d22615..f23235e6 100644 --- a/indexer-and-cache-migrations/1736866698_current_share_price.up.sql +++ b/indexer-and-cache-migrations/1736866698_current_share_price.up.sql @@ -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); diff --git a/indexer-and-cache-migrations/1737498243_histoflux_cursor.down.sql b/indexer-and-cache-migrations/1737498243_histoflux_cursor.down.sql index b4a3eccb..7a792838 100644 --- a/indexer-and-cache-migrations/1737498243_histoflux_cursor.down.sql +++ b/indexer-and-cache-migrations/1737498243_histoflux_cursor.down.sql @@ -1 +1 @@ -DROP TABLE base_indexer.histoflux_cursor; \ No newline at end of file +DROP TABLE base_proxy.histoflux_cursor; \ No newline at end of file