alarm-monitoring/migrations/3 - TTS.sql
2024-08-30 14:16:12 -06:00

4 lines
290 B
SQL

-- Add ttsOverride column to the accounts table
ALTER TABLE 'accounts' ADD COLUMN IF NOT EXISTS 'ttsOverride' INTEGER NOT NULL DEFAULT 0;
-- Retroactively set ttsOverride to 0 for all accounts that dont have it set at all
UPDATE 'accounts' SET 'ttsOverride' = 0 WHERE 'ttsOverride' IS NULL;