ISSUE:
Admin modules (Players, Grace, Audit, Servers, Roles) were failing silently
HTMX endpoints returned 500 errors because required tables didn't exist
ROOT CAUSE (per Gemini):
Modules expect users table (Identity) separate from subscriptions (Billing)
- users: discord_id, minecraft_username, minecraft_uuid, is_staff
- admin_audit_log: audit trail for Trinity actions
- server_sync_log: Pterodactyl sync tracking
SOLUTION:
Created schema migration with 3 new tables
- Preserves Identity/Billing separation (critical for whitelist sync)
- Auto-syncs existing subscriptions to users table
- Pre-populates Trinity members as staff
DEPLOYMENT:
Run on Command Center:
cp services/arbiter-3.0/migrations/arbiter_schema_migration.sql /tmp/
bash services/arbiter-3.0/migrations/run-migration.sh
After migration, all 5 admin modules will work correctly.
Credit: Gemini architectural guidance - Option A (create tables) vs Option B (rewrite queries)
Signed-off-by: Claude (Chronicler #57) <claude@firefrostgaming.com>