This commit is contained in:
parent
9ff89fa18b
commit
7bcbc6b73b
5 changed files with 131 additions and 26 deletions
|
|
@ -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 $$;
|
||||
Loading…
Add table
Add a link
Reference in a new issue