feat: separate dashboard database + launcher repair/cleanup options

- Move dashboard tables (bans, player_ips, audit_log, chat_history,
  settings, player_actions) to a dedicated 'dashboard' database to
  prevent pg_dump conflicts during game updates
- Add DashboardDatabaseService (legacy + backend) with auto-migration
  from old dashboard schema on first startup
- Add launcher option 9: Repair Game Database (fixes schema ownership)
- Add launcher option 10: Clean up Old Dashboard Schema (drops old schema)
- Update PlayerService to fetch IPs from dashboard DB separately
- Update all routes and services to use dash_db for dashboard tables
- Add dashboard_database_name config option to settings.yaml.example
- Update README with new menu options
This commit is contained in:
Reditus committed 2026-05-27 01:02:39 +01:00
1 parent 15af849d2c
commit 0f173dc107
15 files changed
+837 -163

No files matched your search

+2 -2
View File
@@ -3,13 +3,13 @@
import logging
from datetime import datetime
from app.services.database import DatabaseService
from app.services.database import DashboardDatabaseService
logger = logging.getLogger(__name__)
class AuditService:
def __init__(self, db: DatabaseService):
def __init__(self, db: DashboardDatabaseService):
self.db = db
def log(self, action: str, user: str, details: dict | None = None,