Skip to content

Add Balancer V2 indexer DB migrations - #4812

Draft
AryanGodara wants to merge 1 commit into
mainfrom
aryan/balancer-v2-migrations
Draft

Add Balancer V2 indexer DB migrations#4812
AryanGodara wants to merge 1 commit into
mainfrom
aryan/balancer-v2-migrations

Conversation

@AryanGodara

@AryanGodara AryanGodara commented Aug 28, 2026

Copy link
Copy Markdown
Member

Description

First PR of the balancer-v2 indexer stack. Adds the tables the indexer writes pool data into. Migrations only.

Changes

  • New migration V111__balancer_v2.sql adds balancer_v2_pools and balancer_v2_pool_tokens to the pool-indexer's per-network DB.
  • Checkpoints reuse the existing pool_indexer_checkpoints table — balancer and uniswap-v3 factory addresses are distinct, so they share it without collision.
  • Partial index on token WHERE decimals IS NULL for the decimals backfill.

How to test

  1. docker compose up -d applies the migration via flyway.
  2. Check balancer_v2_pools and balancer_v2_pool_tokens exist in the pool_indexer DB.

@AryanGodara AryanGodara self-assigned this Aug 28, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

This pull request has been marked as stale because it has been inactive a while. Please update this pull request or it will be automatically closed.

@github-actions github-actions Bot added the stale label Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant