• Mahmoud Aglan's avatar
    fix: tournament creation was silently failing — wrong column names in insert · 17472ee0
    Mahmoud Aglan authored
    The store() method used column names that don't exist in the database:
    - rounds_count → rounds_total + swiss_rounds
    - entry_fee → entry_fee_coins
    - prize_pool → prize_pool_coins
    - start_date → starts_at
    - organization_id → org_id
    - swiss_org_id, swiss_event_id → removed (don't exist in table)
    - created_by → removed (UUID FK to profiles, admin users aren't in profiles)
    
    Also:
    - Time control is now a proper dropdown with all 14 enum values grouped
      by category (bullet/blitz/rapid/classical)
    - Format dropdown now uses correct enum values (swiss_to_bracket, team_battle
      instead of invalid group_stage)
    - Swiss API tournament creation limited to formats it actually supports
      (swiss, round_robin) — other formats use local bracket/arena engines
    - Insert failure now shows error instead of fake success message
    - On success, redirects to the new tournament page instead of list
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    17472ee0
Name
Last commit
Last update
..
ads Loading commit data...
analytics Loading commit data...
audit-log Loading commit data...
auth/views Loading commit data...
branding Loading commit data...
chess-bots Loading commit data...
dashboard Loading commit data...
economy Loading commit data...
feature-flags Loading commit data...
games Loading commit data...
live-tournaments Loading commit data...
moderation Loading commit data...
notifications Loading commit data...
org-achievements Loading commit data...
org-announcements Loading commit data...
org-applications Loading commit data...
org-challenges Loading commit data...
org-chat Loading commit data...
org-content Loading commit data...
org-events Loading commit data...
org-frames Loading commit data...
org-invites Loading commit data...
org-leaderboards Loading commit data...
org-loyalty Loading commit data...
org-media Loading commit data...
org-partnerships Loading commit data...
org-recruitment Loading commit data...
org-rosters Loading commit data...
org-spotlights Loading commit data...
org-training Loading commit data...
org-transfers Loading commit data...
org-treasury Loading commit data...
organizations Loading commit data...
players Loading commit data...
settings Loading commit data...
tournaments Loading commit data...
users Loading commit data...
workflows Loading commit data...