fixes lol
All checks were successful
Build and Push / build-all (push) Successful in 9m6s

This commit is contained in:
doomtube 2026-01-08 22:57:43 -05:00
parent 9ff89fa18b
commit 7bcbc6b73b
5 changed files with 131 additions and 26 deletions

View file

@ -1250,4 +1250,19 @@ BEGIN
) THEN
ALTER TABLE users ADD COLUMN screensaver_timeout_minutes INTEGER DEFAULT 5;
END IF;
END $$;
-- ============================================
-- LIVE STREAM DURATION TRACKING
-- ============================================
-- Add live_started_at column to realms table (tracks when stream went live for duration display)
DO $$
BEGIN
IF NOT EXISTS (
SELECT 1 FROM information_schema.columns
WHERE table_name = 'realms' AND column_name = 'live_started_at'
) THEN
ALTER TABLE realms ADD COLUMN live_started_at TIMESTAMP WITH TIME ZONE;
END IF;
END $$;