Files
apskel-pos-backend/migrations/000109_index_wallet_lots_origin.up.sql
T

5 lines
383 B
SQL
Raw Normal View History

-- Walks from a lot to the lots carried over from it (transfers, exchanges, refunds),
-- for the exposure of an EnakGame budget (docs/rfc-enakgame.md §10). CONCURRENTLY
-- keeps wallet writes going while it builds, so this file holds one statement.
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_wallet_lots_origin_lot_id ON wallet_lots(origin_lot_id) WHERE origin_lot_id IS NOT NULL;