predikt/oracle/backend/scripts/add-mana-stats-full-columns.sql
caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

11 lines
684 B
SQL

-- Add new columns for including users with negative mana balances and all users
alter table mana_supply_stats
add column if not exists full_total_mana_value numeric,
add column if not exists full_mana_balance numeric,
add column if not exists full_spice_balance numeric,
add column if not exists full_investment_value numeric,
add column if not exists full_loan_total numeric;
-- Add a comment to explain the difference between the new and existing columns
comment on table mana_supply_stats is 'Stores mana supply statistics. Columns prefixed with "full_" include all users, including those with negative balances. Non-prefixed columns only include users with positive balances.';