alarm-monitoring/migrations/4 - Add Cooldown.sql
2024-08-30 14:23:52 -06:00

10 lines
348 B
SQL

-- Add ttsOverride column to the accounts table
--ALTER TABLE 'accounts' ADD COLUMN 'cooldown' TEXT;
-- Step 1: Check if 'cooldown' column exists in 'accounts' table
SELECT COUNT(*)
FROM pragma_table_info('accounts')
WHERE name = 'cooldown';
-- Step 2: If the count is 0, add the 'cooldown' column
ALTER TABLE accounts ADD COLUMN cooldown TEXT;